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
Run: func(_*cobra.Command, _ []string) {}, // adding an empty function here to preserve non-zero exit status for misstated subcommands/flags for the command hierarchy
14
+
Use: "alpha",
15
+
Short: "Run an alpha subcommand",
16
+
Args: cobra.NoArgs,
17
+
Run: func(_*cobra.Command, _ []string) {}, // adding an empty function here to preserve non-zero exit status for misstated subcommands/flags for the command hierarchy
Long: `Generate a stream of file-based catalog objects to stdout from the provided
28
28
catalog images, file-based catalog directories, bundle images, and sqlite
29
29
database files.
30
-
31
-
If rendering sources that do not carry bundle image reference information
32
-
(e.g. bundle directories), the --image-ref-template flag can be used to
33
-
generate image references for the rendered file-based catalog objects.
34
-
This is useful when generating a catalog with image references prior to
35
-
those images actually existing. Available template variables are:
36
-
- {{.Package}} : the package name the bundle belongs to
37
-
- {{.Name}} : the name of the bundle (for registry+v1 bundles, this is the CSV name)
38
-
- {{.Version}} : the version of the bundle
39
-
40
-
`+sqlite.DeprecationMessage,
30
+
`,
41
31
Args: cobra.MinimumNArgs(1),
42
32
Run: func(cmd*cobra.Command, args []string) {
43
33
render.Refs=args
@@ -85,7 +75,23 @@ those images actually existing. Available template variables are:
85
75
}
86
76
cmd.Flags().StringVarP(&output, "output", "o", "json", "Output format of the streamed file-based catalog objects (json|yaml)")
87
77
cmd.Flags().BoolVar(&render.Migrate, "migrate", false, "Perform migrations on the rendered FBC")
88
-
cmd.Flags().StringVar(&imageRefTemplate, "image-ref-template", "", "When bundle image reference information is unavailable, populate it with this template")
78
+
79
+
// Alpha flags
80
+
cmd.Flags().StringVar(&imageRefTemplate, "alpha-image-ref-template", "", "When bundle image reference information is unavailable, populate it with this template")
81
+
82
+
ifshowAlphaHelp {
83
+
cmd.Long+=`
84
+
If rendering sources that do not carry bundle image reference information
85
+
(e.g. bundle directories), the --alpha-image-ref-template flag can be used to
86
+
generate image references for the rendered file-based catalog objects.
87
+
This is useful when generating a catalog with image references prior to
88
+
those images actually existing. Available template variables are:
89
+
- {{.Package}} : the package name the bundle belongs to
90
+
- {{.Name}} : the name of the bundle (for registry+v1 bundles, this is the CSV name)
0 commit comments