cli

package
v0.0.0-...-8ca5d7a Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2018 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logger

func Logger() *logging.Logger

func Print

func Print(object interface{}) error

Print marshals the given object into YAML and then prints it to stdout.

func Table

func Table(columnHeaders ...interface{}) table.Table

Table returns an object with headers for rows to then be added which is done by calling the AddRow func.

Types

type CLI

type CLI struct {
	Options Options
	Config  client.Config

	Client *client.Client
}

func (*CLI) Connect

func (cli *CLI) Connect() error

func (*CLI) Setup

func (cli *CLI) Setup()

type Options

type Options struct {
	Debug       bool
	Verbose     bool
	Quiet       bool
	Token       string
	SSLCertPath string
}

Options represents the command options that can be passed to modify the output.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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