cmd

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: GPL-3.0 Imports: 11 Imported by: 0

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 runs the root command.

func NewCheckCmd added in v0.0.19

func NewCheckCmd() *cobra.Command

NewCheckCmd creates the check command that validates the config file.

func NewCliCmd added in v0.0.8

func NewCliCmd() *cobra.Command

func NewHostCmd

func NewHostCmd() *cobra.Command

NewHostCmd creates the host command that lists all configured hosts.

func NewInfoCmd added in v0.0.14

func NewInfoCmd() *cobra.Command

func NewRootCmd

func NewRootCmd() *cobra.Command

NewRootCmd creates and returns the root cobra command.

func NewTaskCmd added in v0.0.16

func NewTaskCmd() *cobra.Command

NewTaskCmd creates the task command that shows task information.

func PersistentPreRunE added in v0.0.16

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

PersistentPreRunE is the pre-run hook that initializes logging and config.

func RunCheckCmd added in v0.0.19

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

RunCheckCmd loads and validates the configuration, then prints task info.

func RunCliCmd added in v0.0.8

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

RunCliCmd starts the interactive CLI mode.

func RunHostCmd

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

RunHostCmd displays all configured hosts in a table.

func RunInfoCmd added in v0.0.14

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

func RunRootCmd added in v0.0.2

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

RunRootCmd is the default root command that executes all operations.

func RunTaskCmd added in v0.0.16

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

RunTaskCmd displays all tasks from the configuration file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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