commands

package
v0.0.0-...-f770173 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Authors = strings.Join([]string{
		"Bluest Eel Team <bluesteel@billo.systems>"}, "\n  ")
	Copyright = strings.Join([]string{
		"(c) 2019 Antonio Macías Ojeda",
		"(c) 2019 BilloSystems, Ltd. Co."}, "\n  ")
	Support = "https://github.com/bluest-eel/cli/issues/new"
	Website = "https://github.com/bluest-eel/cli"
)

Variables ...

Functions

This section is empty.

Types

type CLI

CLI ...

func NewCLI

func NewCLI() *CLI

NewCLI ...

func (*CLI) BootstrapConfiguration

func (cli *CLI) BootstrapConfiguration() *config.Config

BootstrapConfiguration ...

func (*CLI) Execute

func (cli *CLI) Execute(args []string) error

Execute executes the root command, kicking off whatever setup is needed first.

func (*CLI) PostSetupPreRun

func (cli *CLI) PostSetupPreRun()

PostSetupPreRun ...

func (*CLI) SetEnvVars

func (cli *CLI) SetEnvVars()

SetEnvVars looks for specific values in the envionment that are not part of configuration and pulls them in. Note that 99% of the time, you'll actually want to update the config and not mess with this. ParseEnv is only needed for pulling data out of the environment that can impact how configuration is read.

func (*CLI) Setup

func (cli *CLI) Setup()

Setup ...

func (*CLI) SetupConfiguration

func (cli *CLI) SetupConfiguration() *config.Config

SetupConfiguration ...

func (*CLI) SetupGRPCConnection

func (cli *CLI) SetupGRPCConnection()

SetupGRPCConnection ...

Jump to

Keyboard shortcuts

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