-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
fix show some option in skaffold delete #1995 #1997
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1997 +/- ##
==========================================
+ Coverage 55.48% 55.49% +0.01%
==========================================
Files 173 173
Lines 7510 7512 +2
==========================================
+ Hits 4167 4169 +2
Misses 2952 2952
Partials 391 391
Continue to review full report at Codecov.
|
@@ -142,6 +142,19 @@ func FlagToEnvVarName(f *pflag.Flag) string { | |||
return fmt.Sprintf("SKAFFOLD_%s", strings.Replace(strings.ToUpper(f.Name), "-", "_", -1)) | |||
} | |||
|
|||
func AddRunDeleteFlags(cmd *cobra.Command) { | |||
cmd.Flags().BoolVar(&opts.EnableRPC, "enable-rpc", false, "Enable gRPC for exposing Skaffold events (true by default for `skaffold dev`)") | |||
cmd.Flags().IntVar(&opts.RPCPort, "rpc-port", constants.DefaultRPCPort, "tcp port to expose event API") |
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.
Can you move these flags to AddCommonFlags ?
AddRunDevFlags(cmd *cobra.Command) {
AddRunCommonDevFlags(cmd)
cmd.Flags().BoolVar(&opts.CacheArtifacts, "cache-artifacts", false, "Set to true to enable caching of artifacts.")
cmd.Flags().StringVarP(&opts.CacheFile, "cache-file", "", "", "Specify the location of the cache file (default $HOME/.skaffold/cache)")
}
fixes #1995