Skip to content
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

Merged
merged 9 commits into from
Mar 24, 2025

Conversation

bhanurp
Copy link
Contributor

@bhanurp bhanurp commented Feb 18, 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.

  • Moved some common functions used across commands from cli to cli-core

Sorry, something went wrong.

@bhanurp bhanurp marked this pull request as ready for review February 18, 2025 12:01
@RobiNino RobiNino changed the base branch from master to dev February 19, 2025 12:03
@@ -183,6 +206,18 @@ func WithBoolDefaultValueFalse() BoolFlagOption {
}
}

func WithHiddenTrue() StringFlagOption {
Copy link
Contributor

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

return os.Getenv(envKey)
}

func CreateDownloadConfiguration(c *components.Context) (downloadConfiguration *artifactoryUtils.DownloadConfiguration, err error) {
Copy link
Contributor

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

Copy link
Contributor Author

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

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Copy link
Contributor

👍 Frogbot scanned this pull request and did not find any new security issues.


@bhanurp bhanurp added ignore for release Automatically generated release notes and removed improvement Automatically generated release notes labels Mar 24, 2025
@bhanurp bhanurp merged commit cd78601 into jfrog:dev Mar 24, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ignore for release Automatically generated release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants