-
Notifications
You must be signed in to change notification settings - Fork 32
Feature/add properties for repository via j frog cli #98
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
Feature/add properties for repository via j frog cli #98
Conversation
naveenku-jfrog
commented
Jul 8, 2025
- All tests passed. If this feature is not already covered by the tests, I added new tests.
- All static analysis checks passed.
- This pull request is on the dev branch.
- I used gofmt for formatting the code before submitting the pull request.
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.
static analysis is failing please look into it
| return | ||
| } | ||
|
|
||
| func (rbd *ReleaseBundleRemoteDeleteCommand) IsNewReleaseBundleApiSupported(artifactoryServiceManager artifactory.ArtifactoryServicesManager) bool { |
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.
why is this change required?
| const avoidConfirmationMsg = "You can avoid this confirmation message by adding --quiet to the command." | ||
| const ( | ||
| avoidConfirmationMsg = "You can avoid this confirmation message by adding --quiet to the command." | ||
| minimumVersionForSupportingNewReleaseBundleApi = "7.63.2" |
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.
even this is not required
| propsRecursive: components.NewBoolFlag(Recursive, "[Default: true] When false, artifacts inside sub-folders in Artifactory will not be affected.", components.WithBoolDefaultValueFalse()), | ||
| propsProps: components.NewStringFlag(props, "[Optional] List of semicolon-separated(;) properties in the form of \"key1=value1;key2=value2;...\". Only artifacts with these properties are affected.", components.SetMandatoryFalse()), | ||
| propsExcludeProps: components.NewStringFlag(excludeProps, "[Optional] List of semicolon-separated(;) properties in the form of \"key1=value1;key2=value2;...\". Only artifacts without the specified properties are affected.", components.SetMandatoryFalse()), | ||
| repoOnly: components.NewBoolFlag(repoOnly, "[Default: true] When false, artifacts inside sub-folders in Artifactory will be affected.", components.WithBoolDefaultValueFalse()), |
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.
default should be false, there are more users using --repo-only false instead of true
| Exclusions(c.GetStringsArrFlagValue("exclusions")). | ||
| IncludeDirs(c.GetBoolFlagValue("include-dirs")). | ||
| ArchiveEntries(c.GetStringFlagValue("archive-entries")). | ||
| RepoOnly(c.GetBoolTFlagValue("repo-only")). |
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.
this should be changed based on repo-only default value false