Help us shape the future of Go! Take the 2026 Go Developer Survey

cmd

package
v1.1.47 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildRoot

func BuildRoot() *cobra.Command

BuildRoot creates the SSH provider command tree.

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,
) 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,
) error

Run runs the init logic.

Jump to

Keyboard shortcuts

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