From 9a14682b8b81f896661f5db09daf5fcdbf278e5b Mon Sep 17 00:00:00 2001 From: adisbladis Date: Tue, 14 Jun 2022 09:48:12 +0800 Subject: [PATCH] cmd/root.go: Clean up some dead code --- cmd/root.go | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index 99744d2..da04664 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -98,32 +98,6 @@ var generateCmd = &cobra.Command{ Use: "generate", Short: "Run gomod2nix.toml generator", Run: generateFunc, - - // func(cmd *cobra.Command, args []string) error { - // outDir := flagOutDir - // dir := flagDirectory - - // if len(args) > 0 { - // tmpProj, err := generate.NewTempProject(args) - // if err != nil { - // panic(err) - // } - // defer tmpProj.Remove() - - // dir = tmpProj.Dir - // outDir = "./tmp" - // } - - // // dir := "/home/adisbladis/go/pkg/mod/github.com/kyleconroy/sqlc@v1.14.0" - // // fmt.Println(args) - - // err := generateInternal(dir, outDir, flagMaxJobs) - // if err != nil { - // panic(err) - // } - - // return nil - // }, } var importCmd = &cobra.Command{