Documentation ¶
Index ¶
- Variables
- func Debug() bool
- func Default(value, def string) string
- func DirApp(c *cli.Context, wd string) (string, string, error)
- func Duration(start, end time.Time) string
- func Error(err error)
- func ExitError(err error) error
- func New() *cli.App
- func ParseOpts(args []string) map[string]string
- func QOSEventSend(system, id string, ep QOSEventProperties) error
- func Query(bin string, args ...string) ([]byte, error)
- func ReadSetting(setting string) string
- func RegisterCommand(cmd cli.Command)
- func Run(bin string, args ...string) error
- func Tag() string
- func Usage(c *cli.Context, name string)
- func VersionPrinter(printer func(*cli.Context))
- func WriteSetting(setting, value string) error
- type QOSEventProperties
- type Table
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func DirApp ¶
If user specifies the app's name from command line, then use it; if not, try to read the app name from .convox/app otherwise use the current working directory's name
func QOSEventSend ¶
func QOSEventSend(system, id string, ep QOSEventProperties) error
QOSEventSend sends an internal CLI event to segment for quality-of-service purposes. If the event is an error it also sends the error to rollbar, then displays the error to the user and exits non-zero.
func ReadSetting ¶
func RegisterCommand ¶
func RegisterCommand(cmd cli.Command)
func VersionPrinter ¶
func VersionPrinter(printer func(*cli.Context))
func WriteSetting ¶
Types ¶
type QOSEventProperties ¶
type Table ¶
func (*Table) FormatString ¶
Click to show internal directories.
Click to hide internal directories.