@@ -10,8 +10,9 @@ import (
10
10
)
11
11
12
12
var (
13
- ioJsonPath string
14
- retry bool
13
+ ioJsonPath string
14
+ retry bool
15
+ annotationsForResume * []string
15
16
)
16
17
17
18
var resumeCmd = & cobra.Command {
@@ -22,7 +23,7 @@ var resumeCmd = &cobra.Command{
22
23
dry := true
23
24
upgradePlexVersion (dry )
24
25
25
- _ , err := Resume (ioJsonPath , outputDir , verbose , showAnimation , retry , concurrency , * annotations )
26
+ _ , err := Resume (ioJsonPath , outputDir , verbose , showAnimation , retry , concurrency , * annotationsForResume )
26
27
if err != nil {
27
28
fmt .Println ("Error:" , err )
28
29
}
@@ -51,7 +52,7 @@ func init() {
51
52
resumeCmd .Flags ().BoolVarP (& verbose , "verbose" , "v" , false , "Enable verbose output" )
52
53
resumeCmd .Flags ().BoolVarP (& showAnimation , "showAnimation" , "" , true , "Show job processing animation" )
53
54
resumeCmd .Flags ().IntVarP (& concurrency , "concurrency" , "c" , 1 , "Number of concurrent operations" )
54
- resumeCmd .Flags ().StringArrayP ("annotations" , "a" , []string {}, "Annotations to add to Bacalhau job" )
55
+ annotationsForResume = resumeCmd .Flags ().StringArrayP ("annotations" , "a" , []string {}, "Annotations to add to Bacalhau job" )
55
56
resumeCmd .Flags ().BoolVarP (& retry , "retry" , "" , true , "Retry failed jobs" )
56
57
57
58
rootCmd .AddCommand (resumeCmd )
0 commit comments