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

EVEREST-1819 [CLI] Get rid of spf13/viper lib for parsing CLI params #1015

Merged
merged 15 commits into from
Jan 23, 2025

Conversation

maxkondr
Copy link
Contributor

@maxkondr maxkondr commented Jan 16, 2025

  • Use spf13/cobra lib only for parsing CLI params
  • Parse global flags (--verbose, --json, --kubeconfig) on root level
  • Extend examples
  • Use approach for commands initialisation suggested by cobra lib

- Use spf13/cobra lib only for parsing CLI params
- Parse global flags (--verbose, --json, --kubeconfig) on root level
- Extend examples
@maxkondr maxkondr requested a review from a team as a code owner January 16, 2025 20:05
@maxkondr maxkondr self-assigned this Jan 16, 2025
Copy link
Member

@mayankshah1607 mayankshah1607 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some suggestions to consider :)

Overall LGTM, great improvements. Thanks!

pkg/cli/install/install.go Show resolved Hide resolved
commands/install.go Show resolved Hide resolved
commands/namespaces.go Show resolved Hide resolved
commands/accounts.go Show resolved Hide resolved
@maxkondr maxkondr force-pushed the EVEREST-1819-main-remove-viper branch from b5fa314 to a81d8f8 Compare January 20, 2025 09:52
@maxkondr maxkondr merged commit 14e8fd2 into main Jan 23, 2025
11 checks passed
@maxkondr maxkondr deleted the EVEREST-1819-main-remove-viper branch January 23, 2025 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants