Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultConfigSource sets the go2chef CLI default configuration source type DefaultConfigSource = "go2chef.config_source.local" // DefaultLogLevel sets the go2chef CLI default logging level DefaultLogLevel = go2chef.LogLevelDebug )
Functions ¶
This section is empty.
Types ¶
type Go2ChefCLI ¶
type Go2ChefCLI struct {
// contains filtered or unexported fields
}
Go2ChefCLI is the CLI entry point for go2chef
func NewGo2ChefCLI ¶
func NewGo2ChefCLI(opts ...Option) *Go2ChefCLI
NewGo2ChefCLI configures a Go2ChefCLI instance
func (*Go2ChefCLI) Run ¶
func (g *Go2ChefCLI) Run(argv []string) int
Run kicks off the execution of go2chef
type Option ¶
type Option func(cli *Go2ChefCLI)
Option defines the interface for CLI option functions
func WithFlagSet ¶
WithFlagSet is an Option to set a custom FlagSet
Click to show internal directories.
Click to hide internal directories.