-
Notifications
You must be signed in to change notification settings - Fork 5
Feature/app 1726 Support overwrite strategy flag from CLI #59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
All contributors have signed the CLA ✍️ ✅ |
asafgabai
left a comment
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.
As this is a public PR, let's change its title to a more descriptive one. A description is also recommended.
| OverwriteStrategyDisabled = "DISABLED" | ||
| OverwriteStrategyLatest = "LATEST" | ||
| OverwriteStrategyAll = "ALL" |
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.
Other enums in our CLI are lowercase. Can we make it lowercase too? Does RLM accept only uppercase values?
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.
Done, I changed to lowercase, and I move them to uppercase just before handing them to the request body
apptrust/commands/flags.go
Outdated
| ExcludeReposFlag: components.NewStringFlag(ExcludeReposFlag, "Semicolon-separated list of repositories to exclude.", func(f *components.StringFlag) { f.Mandatory = false }), | ||
| IncludeReposFlag: components.NewStringFlag(IncludeReposFlag, "Semicolon-separated list of repositories to include.", func(f *components.StringFlag) { f.Mandatory = false }), | ||
| PropsFlag: components.NewStringFlag(PropsFlag, "Semicolon-separated list of properties in the form of 'key1=value1;key2=value2;...' to be added to each artifact.", func(f *components.StringFlag) { f.Mandatory = false }), | ||
| OverwriteStrategyFlag: components.NewStringFlag(OverwriteStrategyFlag, "The overwrite strategy. The following values are supported: "+coreutils.ListToText(model.OverwriteStrategyValues), func(f *components.StringFlag) { f.Mandatory = false }), |
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.
I recommend adding a more detailed description of this flag
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.
Improved the help text
8733a54 to
dfc5e23
Compare
|
I have read the CLA Document and I hereby sign the CLA |
mainbranch.go vet ./....go fmt ./....