Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommand ¶ added in v0.1.1
New returns a cobra command instance based on Handler.
Types ¶
type Handler ¶
type Handler struct { handler.Session ConfigFile string `usage:"configuration file (.json/.toml/.yaml/.yml)"` Op string `usage:"Ops.Id value from the config file"` PlanFile string `usage:"Dry-run mode, only write a plan file"` PlanField string `usage:"(comma-separated) Include extra field(s) in the plan file: PruneGlobalIds,PruneGoFiles"` Progress string `usage:"(comma-separated) Printed status message types: audit,copy,module"` Log *log_zap.Mixin Profile *log_pprof.Mixin // contains filtered or unexported fields }
Handler defines the sub-command flags and logic.
func (*Handler) BindFlags ¶
BindFlags binds the flags to Handler fields.
It implements cli/handler/cobra.Handler.
func (*Handler) Init ¶
func (h *Handler) Init() handler_cobra.Init
Init defines the command, its environment variable prefix, etc.
It implements cli/handler/cobra.Handler.
Click to show internal directories.
Click to hide internal directories.