You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: cmd/update_dependencies.go
+57-35
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
package cmd
2
2
3
3
import (
4
+
"errors"
4
5
"fmt"
5
6
"io"
6
7
"os"
@@ -14,19 +15,22 @@ import (
14
15
)
15
16
16
17
varupdateDependenciesCmd=&cobra.Command{
17
-
Use: "dependencies",
18
+
Use: "dependencies PATH",
18
19
Short: "Commands to update promise dependencies",
19
-
Long: "Commands to update promise dependencies",
20
-
Example: ` # update promise dependencies with files in 'local-dir'
21
-
Kratix update dependencies local-dir/ `,
20
+
Long: "Commands to update promise dependencies, by default dependencies are stored in the Promise spec.dependencies field",
21
+
Example: `# update promise dependencies with all files in 'local-dir'
22
+
kratix update dependencies path/to/dir/
23
+
24
+
# update promise dependencies with single file
25
+
kratix update dependencies path/to/file.yaml`,
22
26
Args: cobra.ExactArgs(1),
23
27
RunE: updateDependencies,
24
28
}
25
29
26
30
funcinit() {
27
31
updateCmd.AddCommand(updateDependenciesCmd)
28
32
updateDependenciesCmd.Flags().StringVarP(&dir, "dir", "d", ".", "Directory to read Promise from")
29
-
updateDependenciesCmd.Flags().StringVarP(&image, "image", "i", "", "Name of the image in which to provide the dependencies within Promise Configure workflow.")
33
+
updateDependenciesCmd.Flags().StringVarP(&image, "image", "i", "", "Store dependencies to a Promise Configure workflow image with this image/tag")
0 commit comments