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

feat: add new flags and apache 2.0 license #37

Merged
merged 4 commits into from
Nov 14, 2023
Merged

Conversation

xunholy
Copy link
Contributor

@xunholy xunholy commented Nov 13, 2023

No description provided.

var networkPolicyCmd = &cobra.Command{
Use: "networkpolicy [pod-name]",
Aliases: []string{"netpol"},
Short: "Generate network policy",
Args: cobra.ExactArgs(1),
Args: cobra.MaximumNArgs(1),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed this because when using --all or -A you won't need to pass a arg so it should be <= 1 Args are possibly valid, then just check if it's not set.

maheshrayas
maheshrayas previously approved these changes Nov 13, 2023
Signed-off-by: Michael Fornaro <[email protected]>
@xunholy xunholy merged commit cba2514 into main Nov 14, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants