From ab1ad9eecffed26c4aa3d6fd346d7b06e9eadbb1 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 2 Dec 2024 15:41:30 -0300 Subject: Build and test existing code as is --- cmd/vartan/compile.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'cmd/vartan/compile.go') 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 == "" { -- cgit v1.2.3