cli

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2020 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalFlags struct {
	Debug bool
}

Functions

func ClipboardCommand

func ClipboardCommand(input ClipboardCommandInput) error

func ConfigureClipboardCommand

func ConfigureClipboardCommand(app *kingpin.Application)

func ConfigureDeleteCommand

func ConfigureDeleteCommand(app *kingpin.Application)

func ConfigureExecCommand

func ConfigureExecCommand(app *kingpin.Application)

func ConfigureGlobals

func ConfigureGlobals(app *kingpin.Application)

func ConfigureListCommand

func ConfigureListCommand(app *kingpin.Application)

func ConfigureReadCommand

func ConfigureReadCommand(app *kingpin.Application)

func ConfigureRenameCommand

func ConfigureRenameCommand(app *kingpin.Application)

func ConfigureRenderCommand

func ConfigureRenderCommand(app *kingpin.Application)

func ConfigureTreeCommand

func ConfigureTreeCommand(app *kingpin.Application)

func ConfigureWriteCommand

func ConfigureWriteCommand(app *kingpin.Application)

func DeleteCommand

func DeleteCommand(input DeleteCommandInput) error

func ExecCommand

func ExecCommand(input ExecCommandInput) error

func Execute

func Execute(command string, args []string, env environ) error

func GetEnv

func GetEnv(input ExecCommandInput, p *ssm.Parameter) (string, string)

func GetParameters added in v1.0.1

func GetParameters(svc *ssm.SSM, parameters map[string]string) error

func ListCommand

func ListCommand(input ListCommandInput) error

func Min added in v1.0.1

func Min(a, b int) int

func NewSsmClient

func NewSsmClient() *ssm.SSM

func ParseInput

func ParseInput(input *WriteCommandInput) error

func ParseTemplate added in v1.0.1

func ParseTemplate(input RenderCommandInput, file string, data []byte, parameters map[string]string) error

func ReadCommand

func ReadCommand(input ReadCommandInput) error

func ReadTemplate added in v1.0.1

func ReadTemplate(input RenderCommandInput) (string, []byte, error)

func Rename

func Rename(svc *ssm.SSM, parameter *ssm.Parameter, dest string) error

func RenameCommand

func RenameCommand(input RenameCommandInput) error

func RenameParameter

func RenameParameter(input RenameCommandInput) error

func RenamePath

func RenamePath(input RenameCommandInput) error

func RenderCommand

func RenderCommand(input RenderCommandInput) error

func RenderTemplate added in v1.0.1

func RenderTemplate(input RenderCommandInput, file string, data []byte, parameters map[string]string) error

func TreeCommand

func TreeCommand(input TreeCommandInput) error

func WriteCommand

func WriteCommand(input WriteCommandInput) error

Types

type ClipboardCommandInput

type ClipboardCommandInput struct {
	Name    string
	Timeout time.Duration
}

type DeleteCommandInput

type DeleteCommandInput struct {
	Name  string
	Force bool
}

type ExecCommandInput

type ExecCommandInput struct {
	Path      string
	Overwrite bool
	Safe      bool
	Command   string
	Args      []string
}

type ListCommandInput

type ListCommandInput struct {
	Format string
}

type ReadCommandInput

type ReadCommandInput struct {
	Name       string
	OutputFile *os.File
	OutputMode string
}

type RenameCommandInput

type RenameCommandInput struct {
	Path string
	Dest string
}

type RenderCommandInput

type RenderCommandInput struct {
	Path       string
	InputFile  string
	OutputFile *os.File
	OutputMode string
}

type TreeCommandInput

type TreeCommandInput struct {
}

type WriteCommandInput

type WriteCommandInput struct {
	Name      string
	Value     string
	Type      string
	String    bool
	Overwrite bool
}

Jump to

Keyboard shortcuts

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