commands

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCommandNames

func GetCommandNames() []string

GetCommandNames returns a list of all the command names

func GetCommandSet

func GetCommandSet() map[string]Command

GetCommandSet returns a mapping between command names and commands

Types

type Command

type Command interface {
	GetName() string
	GetFlagset() *flag.FlagSet
	Run() error
}

Command generically represents a command that is runnable via the atlas command-line tool (e.g. init-app)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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