18 lines
439 B
Go
18 lines
439 B
Go
package environment
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
// AirshipCTLSettings is a container for all of the settings needed by airshipctl
|
|
type AirshipCTLSettings struct {
|
|
// Debug is used for verbose output
|
|
Debug bool
|
|
}
|
|
|
|
// InitFlags adds the default settings flags to cmd
|
|
func (a *AirshipCTLSettings) InitFlags(cmd *cobra.Command) {
|
|
flags := cmd.PersistentFlags()
|
|
flags.BoolVar(&a.Debug, "debug", false, "enable verbose output")
|
|
}
|