cmd

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2018 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ConfigFile stores path to config
	ConfigFile string
)
View Source
var RootCmd = &cobra.Command{
	Use:              "goship",
	Short:            "Find and connect to particular cloud resources",
	Long:             "This application helps find and connect to particular cloud resources",
	PersistentPreRun: initRootFlags,
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute()

Execute cobra

Types

type Command

type Command struct {
	Binary string
	Cmd    []string
	Env    []string
}

Command defines command to run

func (*Command) Exec

func (c *Command) Exec() error

Exec executes defined command

type ScpCommand

type ScpCommand struct {
	User      string
	Host      string
	HostPath  string
	LocalPath string
}

ScpCommand defines scp command

func (*ScpCommand) CopyFromRemoteCmd

func (s *ScpCommand) CopyFromRemoteCmd() []string

CopyFromRemoteCmd defines command for copying from remote host

func (*ScpCommand) CopyToRemoteCmd

func (s *ScpCommand) CopyToRemoteCmd() []string

CopyToRemoteCmd defines command for copying to remote host

Jump to

Keyboard shortcuts

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