Skip to content

Commit ae73c3f

Browse files
fix annotations flag (#506)
1 parent e049ab2 commit ae73c3f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

cmd/create.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ var createCmd = &cobra.Command{
3333
os.Exit(1)
3434
}
3535
if autoRun {
36-
PlexRun(cid, outputDir, verbose, showAnimation, concurrency, annotations)
36+
PlexRun(cid, outputDir, verbose, showAnimation, concurrency, *annotations)
3737
}
3838
},
3939
}

cmd/resume.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var resumeCmd = &cobra.Command{
2222
dry := true
2323
upgradePlexVersion(dry)
2424

25-
_, err := Resume(ioJsonPath, outputDir, verbose, showAnimation, retry, concurrency, annotations)
25+
_, err := Resume(ioJsonPath, outputDir, verbose, showAnimation, retry, concurrency, *annotations)
2626
if err != nil {
2727
fmt.Println("Error:", err)
2828
}

cmd/run.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var (
1818
verbose bool
1919
showAnimation bool
2020
concurrency int
21-
annotations []string
21+
annotations *[]string
2222
)
2323

2424
var runCmd = &cobra.Command{
@@ -29,7 +29,7 @@ var runCmd = &cobra.Command{
2929
dry := true
3030
upgradePlexVersion(dry)
3131

32-
_, _, err := PlexRun(ioJsonCid, outputDir, verbose, showAnimation, concurrency, annotations)
32+
_, _, err := PlexRun(ioJsonCid, outputDir, verbose, showAnimation, concurrency, *annotations)
3333
if err != nil {
3434
fmt.Println("Error:", err)
3535
os.Exit(1)
@@ -88,7 +88,7 @@ func init() {
8888
runCmd.Flags().BoolVarP(&verbose, "verbose", "v", false, "Enable verbose output")
8989
runCmd.Flags().BoolVarP(&showAnimation, "showAnimation", "", true, "Show job processing animation")
9090
runCmd.Flags().IntVarP(&concurrency, "concurrency", "c", 1, "Number of concurrent operations")
91-
runCmd.Flags().StringArrayP("annotations", "a", []string{}, "Annotations to add to Bacalhau job")
91+
annotations = runCmd.Flags().StringArrayP("annotations", "a", []string{}, "Annotations to add to Bacalhau job")
9292

9393
rootCmd.AddCommand(runCmd)
9494
}

0 commit comments

Comments
 (0)