Documentation
¶
Index ¶
- func CheckErr(err error)
- func Execute()
- func NewCliCmd() *cobra.Command
- func NewHostCmd() *cobra.Command
- func NewRootCmd() *cobra.Command
- func NewRunCmd() *cobra.Command
- func NewTaskCmd() *cobra.Command
- func RunCliCmd(cmd *cobra.Command, args []string)
- func RunHostCmd(cmd *cobra.Command, args []string)
- func RunRunCmd(cmd *cobra.Command, args []string)
- func RunTaskCmd(cmd *cobra.Command, args []string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckErr ¶ added in v0.0.2
func CheckErr(err error)
CheckErr logs the error and exits if err is not nil.
func Execute ¶
func Execute()
Execute builds the root command tree and runs it. It is the single entry point invoked by main; any error returned by cobra is surfaced via CheckErr which logs and exits non-zero.
func NewHostCmd ¶
NewHostCmd creates the host command that lists all configured hosts.
func NewRootCmd ¶
NewRootCmd creates and returns the root cobra command. Running the root command without a subcommand prints help; use "minop run" to execute tasks.
func NewTaskCmd ¶ added in v0.0.16
NewTaskCmd creates the task command that shows task information.
func RunCliCmd ¶ added in v0.0.8
RunCliCmd starts the interactive CLI mode, where the user types shell commands that are executed on every host in the loaded hosts file.
func RunHostCmd ¶
RunHostCmd displays all configured hosts in a tree format.
func RunRunCmd ¶ added in v0.0.26
RunRunCmd executes every operation defined in the task file on every host in the hosts file, in declaration order. Output for each host line is prefixed with four spaces so it nests visually under the operation header.
func RunTaskCmd ¶ added in v0.0.16
RunTaskCmd loads the task file and lists each operation's default name as a bullet list, without executing anything.
Types ¶
This section is empty.