feat: allow setting the vector image as a global property

This commit is contained in:
Jose Diaz-Gonzalez
2024-01-25 04:26:57 -05:00
parent c496f8abd6
commit aa05a95243
5 changed files with 39 additions and 8 deletions

View File

@@ -54,7 +54,7 @@ func main() {
err = logs.CommandVectorLogs(*num, *tail)
case "vector-start":
args := flag.NewFlagSet("logs:vector-start", flag.ExitOnError)
vectorImage := args.String("vector-image", logs.VectorImage, "--vector-image: the name of the docker image to run for vector")
vectorImage := args.String("vector-image", "", "--vector-image: the name of the docker image to run for vector")
args.Parse(os.Args[2:])
err = logs.CommandVectorStart(*vectorImage)
case "vector-stop":