cli

package
v0.0.0-...-f22496c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

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

func WithFlagSet(set *pflag.FlagSet) Option

WithFlagSet is an Option to set a custom FlagSet

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL