diff options
author | EuAndreh <eu@euandre.org> | 2024-12-02 15:41:30 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-12-02 15:41:30 -0300 |
commit | ab1ad9eecffed26c4aa3d6fd346d7b06e9eadbb1 (patch) | |
tree | 8e15b7188b153d8f85be7120f5370249286b6f17 /cmd/vartan/show.go | |
parent | Setup Makefile project structure with empty src/urubu.go source (diff) | |
download | urubu-ab1ad9eecffed26c4aa3d6fd346d7b06e9eadbb1.tar.gz urubu-ab1ad9eecffed26c4aa3d6fd346d7b06e9eadbb1.tar.xz |
Build and test existing code as is
Diffstat (limited to 'cmd/vartan/show.go')
-rw-r--r-- | cmd/vartan/show.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cmd/vartan/show.go b/cmd/vartan/show.go index c142623..c56be1f 100644 --- a/cmd/vartan/show.go +++ b/cmd/vartan/show.go @@ -8,11 +8,11 @@ import ( "strings" "text/template" - "github.com/nihei9/vartan/grammar" - spec "github.com/nihei9/vartan/spec/grammar" - "github.com/spf13/cobra" + "grammar" + spec "spec/grammar" ) +/* func init() { cmd := &cobra.Command{ Use: "show", @@ -23,8 +23,9 @@ func init() { } rootCmd.AddCommand(cmd) } +*/ -func runShow(cmd *cobra.Command, args []string) error { +func runShow(args []string) error { report, err := readReport(args[0]) if err != nil { return err |