commands

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	sys.IO

	Debug     *os.File
	Verbosity int
}

Base contains dependencies and options common to all commands

type InspectCmd

type InspectCmd struct {
	Host     string
	Port     uint16
	SSLMode  string
	DBName   string
	Username string

	Output      string
	SortChecks  bool
	SortColumns bool
	SortIndexes bool
}

An InspectCmd is a request to describe a database

func (*InspectCmd) Run

func (c *InspectCmd) Run(base *Base) error

Run executes the command

type PingCmd

type PingCmd struct {
	Host     string
	Port     uint16
	SSLMode  string
	DBName   string
	Username string
}

A PingCmd is a request to test database connection options

func (*PingCmd) Run

func (c *PingCmd) Run(base *Base) error

Run executes the command

type RunBookDotCmd

type RunBookDotCmd struct {
	File    string
	Output  string
	AutoOut bool // base output filename on input filename
	Splines string
}

A RunBookDotCmd is a request to describe how a runbook's tasks are related

func (*RunBookDotCmd) Run

func (c *RunBookDotCmd) Run(base *Base) (err error)

Run executes the command

type RunBookEvalCmd

type RunBookEvalCmd struct {
	File   string
	Color  string
	Output string
}

A RunBookEvalCmd is a request to convert a runbook to pretty-printed JSON

func (*RunBookEvalCmd) Run

func (c *RunBookEvalCmd) Run(base *Base) (err error)

Run executes the command

type RunBookListCmd

type RunBookListCmd struct {
	File string
}

A RunBookListCmd is a request to list the targets & tasks in a runbook

func (*RunBookListCmd) Run

func (c *RunBookListCmd) Run(base *Base) error

Run executes the command

type RunBookRunCmd

type RunBookRunCmd struct {
	File string
}

A RunBookRunCmd is a request to execute the tasks in a runbook

func (*RunBookRunCmd) Run

func (c *RunBookRunCmd) Run(base *Base) error

Run executes the command

type VersionCmd

type VersionCmd struct {
	App   string
	Build string

	BuildInfo *debug.BuildInfo
	Verbose   bool
}

A VersionCmd is a request to reports the app's version

func (*VersionCmd) Run

func (c *VersionCmd) Run(base *Base) error

Run executes the command

Jump to

Keyboard shortcuts

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