Documentation
¶
Index ¶
- func CheckErr(err error)
- func Execute()
- func NewCheckCmd() *cobra.Command
- func NewCliCmd() *cobra.Command
- func NewHostCmd() *cobra.Command
- func NewInfoCmd() *cobra.Command
- func NewRootCmd() *cobra.Command
- func NewTaskCmd() *cobra.Command
- func PersistentPreRunE(cmd *cobra.Command, args []string) error
- func RunCheckCmd(cmd *cobra.Command, args []string)
- func RunCliCmd(cmd *cobra.Command, args []string)
- func RunHostCmd(cmd *cobra.Command, args []string)
- func RunInfoCmd(cmd *cobra.Command, args []string)
- func RunRootCmd(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 NewCheckCmd ¶ added in v0.0.19
NewCheckCmd creates the check command that validates the config file.
func NewHostCmd ¶
NewHostCmd creates the host command that lists all configured hosts.
func NewInfoCmd ¶ added in v0.0.14
func NewRootCmd ¶
NewRootCmd creates and returns the root cobra command.
func NewTaskCmd ¶ added in v0.0.16
NewTaskCmd creates the task command that shows task information.
func PersistentPreRunE ¶ added in v0.0.16
PersistentPreRunE is the pre-run hook that initializes logging and config.
func RunCheckCmd ¶ added in v0.0.19
RunCheckCmd loads and validates the configuration, then prints task info.
func RunHostCmd ¶
RunHostCmd displays all configured hosts in a table.
func RunInfoCmd ¶ added in v0.0.14
func RunRootCmd ¶ added in v0.0.2
RunRootCmd is the default root command that executes all operations.
func RunTaskCmd ¶ added in v0.0.16
RunTaskCmd displays all tasks from the configuration file.
Types ¶
This section is empty.