cli

package
v0.11.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2017 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Unknown = iota
	SystemD
	UpdateRcD
	ChkConfig
)

init system types

Variables

This section is empty.

Functions

func Execute

func Execute(ctx apitypes.Context, config gofig.Config)

Execute executes the CLI using the current process's arguments.

func ExecuteWithArgs

func ExecuteWithArgs(
	ctx apitypes.Context, config gofig.Config, a ...string)

ExecuteWithArgs executes the CLI using the specified arguments.

Types

type CLI

type CLI struct {
	// contains filtered or unexported fields
}

CLI is the REX-Ray command line interface.

func New

func New(ctx apitypes.Context, config gofig.Config) *CLI

New returns a new CLI using the current process's arguments.

func NewWithArgs

func NewWithArgs(
	ctx apitypes.Context, config gofig.Config, a ...string) *CLI

NewWithArgs returns a new CLI using the specified arguments.

func (*CLI) Execute

func (c *CLI) Execute()

Execute executes the CLI.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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