cmd

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildRoot

func BuildRoot() *cobra.Command

BuildRoot creates a new root command from the

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func NewCommandCmd

func NewCommandCmd() *cobra.Command

NewCommandCmd defines a command

func NewInitCmd

func NewInitCmd() *cobra.Command

NewInitCmd defines a init

func NewRootCmd

func NewRootCmd() *cobra.Command

NewRootCmd returns a new root command

Types

type CommandCmd

type CommandCmd struct{}

CommandCmd holds the cmd flags

func (*CommandCmd) Run

func (cmd *CommandCmd) Run(
	ctx context.Context,
	providerSSH *ssh.SSHProvider,
	logs log.Logger,
) error

Run runs the command logic

type InitCmd

type InitCmd struct{}

InitCmd holds the cmd flags

func (*InitCmd) Run

func (cmd *InitCmd) Run(
	ctx context.Context,
	providerSSH *ssh.SSHProvider,
	logs log.Logger,
) error

Run runs the init logic

Jump to

Keyboard shortcuts

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