cmd: moved --cacert flag to use with 'serve' command
This commit is contained in:
parent
ca6e4a8625
commit
e93bef79f2
2 changed files with 3 additions and 3 deletions
|
|
@ -10,8 +10,9 @@ import (
|
|||
)
|
||||
|
||||
var (
|
||||
configPath string
|
||||
config configurator.Config
|
||||
configPath string
|
||||
cacertPath string
|
||||
verbose bool
|
||||
targets []string
|
||||
outputPath string
|
||||
|
|
@ -42,6 +43,7 @@ func init() {
|
|||
cobra.OnInitialize(initConfig)
|
||||
rootCmd.PersistentFlags().StringVarP(&configPath, "config", "c", "./config.yaml", "set the config path")
|
||||
rootCmd.PersistentFlags().BoolVarP(&verbose, "verbose", "v", false, "set to enable verbose output")
|
||||
rootCmd.PersistentFlags().StringVar(&cacertPath, "cacert", "", "path to CA cert. (defaults to system CAs)")
|
||||
}
|
||||
|
||||
func initConfig() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue