cmd

package
v0.0.0-...-76bca70 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: MIT, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadSection = errors.New("no section: ")
	ErrBadKey     = errors.New("no key: ")
	ErrNoConf     = errors.New("must be run from a directory with an ego project")
	ErrBadConf    = errors.New("error: ego project file is corrupt")
)

* ErrBadSection -- No section exists * ErrBadSection -- No key exists * ErrNoConf -- No configuration file *

View Source
var (
	ErrEgoProjectExists = errors.New("an ego project already exists at")
)

Functions

func AddConfig

func AddConfig(section, key string, def interface{})

func Config

func Config(section, key string, def interface{}) (interface{}, error)

func PrintConfig

func PrintConfig()

func SaveConfig

func SaveConfig(path string) error

Types

type Create

type Create struct {
	// contains filtered or unexported fields
}

func (*Create) Action

func (c *Create) Action(s []string, f *flagger.Flags) error

func (*Create) CreateProject

func (c *Create) CreateProject() error

func (*Create) Prepare

func (c *Create) Prepare(flags *flagger.Flags)

type Play

type Play struct{}

func (*Play) Action

func (p *Play) Action(s []string, f *flagger.Flags) error

func (*Play) Prepare

func (p *Play) Prepare(flags *flagger.Flags)

Jump to

Keyboard shortcuts

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