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/compile.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/compile.go')
-rw-r--r-- | cmd/vartan/compile.go | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/cmd/vartan/compile.go b/cmd/vartan/compile.go index e645366..0755456 100644 --- a/cmd/vartan/compile.go +++ b/cmd/vartan/compile.go @@ -7,17 +7,17 @@ import ( "os" "path/filepath" - verr "github.com/nihei9/vartan/error" - "github.com/nihei9/vartan/grammar" - spec "github.com/nihei9/vartan/spec/grammar" - "github.com/nihei9/vartan/spec/grammar/parser" - "github.com/spf13/cobra" + verr "error" + "grammar" + spec "spec/grammar" + "spec/grammar/parser" ) var compileFlags = struct { output *string }{} +/* func init() { cmd := &cobra.Command{ Use: "compile", @@ -29,8 +29,9 @@ func init() { compileFlags.output = cmd.Flags().StringP("output", "o", "", "output file path (default stdout)") rootCmd.AddCommand(cmd) } +*/ -func runCompile(cmd *cobra.Command, args []string) (retErr error) { +func runCompile(args []string) (retErr error) { var tmpDirPath string defer func() { if tmpDirPath == "" { |