app

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//Defines the app name
	AppName = "Commander"
	//Default config file which is loaded
	CommanderFile = "commander.yaml"
)

Variables

This section is empty.

Functions

func AddCommand

func AddCommand(command string, existed []byte) ([]byte, error)

func TestCommand

func TestCommand(file string, title string, ctx AddCommandContext) error

Types

type AddCommandContext

type AddCommandContext struct {
	Verbose    bool
	NoColor    bool
	Debug      bool
	Concurrent int
}

AddCommandContext holds all flags for the add command

func NewAddContextFromCli

func NewAddContextFromCli(c *cli.Context) AddCommandContext

NewAddContextFromCli is a constructor which creates the context

Jump to

Keyboard shortcuts

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