cmd

package
v0.5.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2016 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Package cmd contains all of the Arigato cli commands

Index

Constants

This section is empty.

Variables

View Source
var Cmds []cli.Command

Cmds is the list of all cli commands

Functions

func Chain

func Chain(funcs ...func(*cli.Context) error) func(*cli.Context) error

Chain allows easy sequential calling of BeforeFuncs and AfterFuncs. Chain will exit on the first error seen. XXX Chain is only public while we need it for passthrough.go

func EnsureDaemon

func EnsureDaemon(ctx *cli.Context) error

EnsureDaemon ensures that the daemon is running, and is the correct version, before a command is exeucted. the daemon will be started/restarted once, to try and launch the latest version. XXX EnsureDaemon is only public while we need it for passthrough.go

func EnsureSession

func EnsureSession(ctx *cli.Context) error

EnsureSession ensures that the user is logged in with the daemon and has a valid session. If not, it will attempt to log the user in via environment variables. If they do not exist, of the login fails, it will abort the command. XXX EnsureSession is only public while we need it for passthrough.go

Types

This section is empty.

Jump to

Keyboard shortcuts

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