You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 16, 2020. It is now read-only.
Use StringSlice instead of StringArray in API CLI (#772)
`StringSlice` allows comma separated values, so commands like:
dispatch create api --method GET,POST
will work properly.
Also remove redundant "default: value" from description (it's being
added by cobra anyway).
cmd.Flags().StringSliceVarP(&hosts, "domain", "d", []string{}, "domain names that point to your API. Use multiple times or separate with commas to specify more values.")
57
+
cmd.Flags().StringSliceVarP(&paths, "path", "p", []string{"/"}, "relative paths that point to your API. Use multiple times or separate with commas to specify more values.")
58
+
cmd.Flags().StringSliceVarP(&methods, "method", "m", []string{"GET"}, "methods that point to your API. Use multiple times or separate with commas to specify more values.")
59
+
cmd.Flags().BoolVar(&httpsOnly, "https-only", false, "only support https connections")
60
+
cmd.Flags().BoolVar(&disable, "disable", false, "disable the api")
0 commit comments