Преглед изворни кода

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.Fatalf("Template execution failed: %v", err)
 	}
 	}
 	log.Printf("Generated file '%s'. You can build it by running 'go build' in the output directory.", outfile)
 	log.Printf("Generated file '%s'. You can build it by running 'go build' in the output directory.", outfile)
+	fmt.Print(path.Dir(outfile))
 }
 }