-
Notifications
You must be signed in to change notification settings - Fork 67
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
Migrate life cycle commands from jfrog-cli to jfrog-cli-artifactory #1351
Conversation
bhanurp
commented
Feb 18, 2025
•
edited
Loading
edited
- 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.
- Moved some common functions used across commands from cli to cli-core
plugins/components/commandcomp.go
Outdated
@@ -183,6 +206,18 @@ func WithBoolDefaultValueFalse() BoolFlagOption { | |||
} | |||
} | |||
|
|||
func WithHiddenTrue() StringFlagOption { |
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.
A similar func already exists - SetHiddenStrFlag
plugins/common/utils.go
Outdated
return os.Getenv(envKey) | ||
} | ||
|
||
func CreateDownloadConfiguration(c *components.Context) (downloadConfiguration *artifactoryUtils.DownloadConfiguration, err error) { |
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.
Some of these aren't really plugins utils, I suggest placing them in jfrog-cli-artifactory.
In addition, since they duplicate existing functions in jfrog-cli
(only differ in context), let's try to make a common function out of them or somehow overcome the context difference
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.
Agree moved lifecycle functions to jfrog-cli-artifactory
…ommands