-
Notifications
You must be signed in to change notification settings - Fork 17
ocm command and some ctf cmd extension #59
base: main
Are you sure you want to change the base?
Conversation
| "github.com/gardener/component-cli/pkg/logger" | ||
| ) | ||
|
|
||
| // Options defines the options that are used to add resources to a component descriptor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docstring seems misleading to me
| func main() { | ||
| ctx := context.Background() | ||
| defer ctx.Done() | ||
| cmd := app.NewComponentsCliCommand(ctx) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also rename the function from NewComponentsCliCommand() to NewOCMCliCommand() ?
| Property string | ||
| } | ||
|
|
||
| // NewGetCommand creates a command to add additional resources to a component descriptor. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docstring seems misleading to me
| cmd := &cobra.Command{ | ||
| Use: "get COMPONENT_ARCHIVE_PATH [options...]", | ||
| Args: cobra.MinimumNArgs(1), | ||
| Short: "set some component descriptor properties", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doc seems misleading to me
| Args: cobra.MinimumNArgs(1), | ||
| Short: "set some component descriptor properties", | ||
| Long: ` | ||
| the set command sets some component descriptor properies like the component name and/or version. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doc seems misleading to me
|
|
||
| func TestConfig(t *testing.T) { | ||
| RegisterFailHandler(Fail) | ||
| RunSpecs(t, "Resources Test Suite") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| RunSpecs(t, "Resources Test Suite") | |
| RunSpecs(t, "Component Archive Set Test Suite") |
| RunSpecs(t, "Resources Test Suite") | ||
| } | ||
|
|
||
| var _ = Describe("Set", func() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| var _ = Describe("Set", func() { | |
| var _ = Describe("Get", func() { |
| type PushOptions struct { | ||
| // CTFPath is the path to the directory containing the ctf archive. | ||
| CTFPath string | ||
| // CTFPaths is the path to the directory containing the ctf archive. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| // CTFPaths is the path to the directory containing the ctf archive. | |
| // CTFPaths is the list of paths to the directories containing the ctf archives. |
| Args: cobra.ExactArgs(1), | ||
| Use: "push <CTF_PATH> ...", | ||
| Args: cobra.MinimumNArgs(1), | ||
| Short: "Pushes all archives of a ctf to a remote repository", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Short: "Pushes all archives of a ctf to a remote repository", | |
| Short: "Pushes one or more ctf archives to a remote repository", |
| Args: cobra.MinimumNArgs(1), | ||
| Short: "Pushes all archives of a ctf to a remote repository", | ||
| Long: ` | ||
| Push pushes all component archives and oci artifacts to the defined oci repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Push pushes all component archives and oci artifacts to the defined oci repository. | |
| Push pushes one or more ctf archives (including all component archives and oci artifacts) to a remote repository. |
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note: