ソースを参照

generator: Print output directory to stdout

This allows doing something like "cd $(coredhcp-generator) && go build"

Signed-off-by: Anatole Denis <anatole@unverle.fr>
Anatole Denis 5 年 前
コミット
604da9f671
1 ファイル変更1 行追加0 行削除
  1. 1 0
      cmds/coredhcp-generator/main.go

+ 1 - 0
cmds/coredhcp-generator/main.go

@@ -137,4 +137,5 @@ func main() {
 		log.Fatalf("Template execution failed: %v", err)
 	}
 	log.Printf("Generated file '%s'. You can build it by running 'go build' in the output directory.", outfile)
+	fmt.Print(path.Dir(outfile))
 }