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

cli

package
v0.19.2 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commands

type Commands struct {
	*ServiceCommand

	Exec Exec `command:"exec" description:"Temporarily get and then execute a file"`
	Get  Get  `command:"get" description:"Download a file and verify its checksum" alias:"download"`
	List List `command:"list" description:"List available files"`
}

func CreateCommands

func CreateCommands(runtime client.Runtime, manager service.Manager) *Commands

type Exec

type Exec struct {
	*ServiceCommand `no-flag:"true"`
	clientcmd.InteractiveAuthCommand

	Args ExecArgs `positional-args:"true"`
	// contains filtered or unexported fields
}

func (Exec) Execute

func (c Exec) Execute(_ []string) error

type ExecArgs

type ExecArgs struct {
	File  string   `positional-arg-name:"FILE" description:"File name" required:"true"`
	Extra []string `positional-arg-name:"EXTRA" description:"Additional arguments to pass"`
}

type Get

type Get struct {
	*ServiceCommand `no-flag:"true"`
	clientcmd.InteractiveAuthCommand

	Args GetArgs `positional-args:"true"`
	// contains filtered or unexported fields
}

func (Get) Execute

func (c Get) Execute(_ []string) error

type GetArgs

type GetArgs struct {
	File       string `positional-arg-name:"FILE" description:"File name" required:"true"`
	TargetFile string `positional-arg-name:"TARGET-FILE" description:"Target path to write download (use '-' for STDOUT)"`
}

type List

type List struct {
	*ServiceCommand `no-flag:"true"`
	clientcmd.InteractiveAuthCommand
	// contains filtered or unexported fields
}

func (List) Execute

func (c List) Execute(_ []string) error

type ServiceCommand

type ServiceCommand struct {
	clientcmd.ServiceCommand
}

func (ServiceCommand) GetService

func (sc ServiceCommand) GetService() (*svc.Service, error)

Jump to

Keyboard shortcuts

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