command

package
v0.0.0-...-db6cb46 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SftpCommand

func SftpCommand(config *cfg.Config, callback func(sftpClient *sftp.Client) error) error

Types

type Command

type Command struct {
	Exec string
	Args []string
}

func CreateNewCommand

func CreateNewCommand(exec string, args []string) *Command

func (*Command) Add2Arg

func (c *Command) Add2Arg(d string, d2 string)

func (*Command) Add2ArgAsSolo

func (c *Command) Add2ArgAsSolo(d string, d2 string)

func (*Command) Create

func (c *Command) Create() *exec.Cmd

func (*Command) GetCommandString

func (c *Command) GetCommandString(clearPassword bool) string

func (*Command) Run

func (c *Command) Run(code int) error

func (*Command) ToGzip

func (c *Command) ToGzip(pathFile string) error

Jump to

Keyboard shortcuts

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