cmd

package
v0.0.27 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2026 License: GPL-3.0 Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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 NewCliCmd added in v0.0.8

func NewCliCmd() *cobra.Command

NewCliCmd creates the "cli" subcommand.

func NewHostCmd

func NewHostCmd() *cobra.Command

NewHostCmd creates the host command that lists all configured hosts.

func NewRootCmd

func NewRootCmd() *cobra.Command

NewRootCmd creates and returns the root cobra command. Running the root command without a subcommand prints help; use "minop run" to execute tasks.

func NewRunCmd added in v0.0.26

func NewRunCmd() *cobra.Command

NewRunCmd creates the run subcommand.

func NewTaskCmd added in v0.0.16

func NewTaskCmd() *cobra.Command

NewTaskCmd creates the task command that shows task information.

func RunCliCmd added in v0.0.8

func RunCliCmd(cmd *cobra.Command, args []string)

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

func RunHostCmd(cmd *cobra.Command, args []string)

RunHostCmd displays all configured hosts in a tree format.

func RunRunCmd added in v0.0.26

func RunRunCmd(cmd *cobra.Command, args []string)

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

func RunTaskCmd(cmd *cobra.Command, args []string)

RunTaskCmd loads the task file and lists each operation's default name as a bullet list, without executing anything.

Types

This section is empty.

Jump to

Keyboard shortcuts

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