cmd

package
v2.2.2+incompatible Latest Latest
Warning

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

Go to latest
Published: May 18, 2017 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ERR_ADD_CMD     = errors.New("failed to add new application")
	ERR_GET_ENTRIES = errors.New("failed to get list of registered applications")
	ERR_MISSED_ARGS = errors.New("missed args")
)
View Source
var (
	ERR_SETTINGS_CMD   = errors.New("failed to set new setting")
	ERR_MISSED_VALUE   = errors.New("missed value")
	ERR_MISSED_KEY     = errors.New("missed key")
	ERR_MANY_ARGS      = errors.New("too many arguments")
	ERR_INVALID_PREFIX = errors.Errorf("prefix must be one of '%s' / '%s'", core.PRIMUSRUN, core.OPTIRUN)
	ERR_UPDATE_APPS    = errors.New("failed to update applications")
)
View Source
var (
	ERR_LIST_CMD = errors.New("failed to retrieve entries")
)
View Source
var (
	ERR_REMOVE_CMD = errors.New("failed to remove entry")
)
View Source
var (
	ERR_UPDATE_CMD = errors.New("failed to update")
)

Functions

func NewAddCommand

func NewAddCommand(logger *logging.Logger, entryRepo storage.EntryRepository, settingsRepo storage.SettingsRepository) *cli.Command

func NewListCommand

func NewListCommand(logger *logging.Logger, entryRepo storage.EntryRepository, settingsRepo storage.SettingsRepository) *cli.Command

func NewRemoveCommand

func NewRemoveCommand(logger *logging.Logger, entryRepo storage.EntryRepository, settingsRepo storage.SettingsRepository) *cli.Command

func NewSettingsCommand

func NewSettingsCommand(logger *logging.Logger, entryRepo storage.EntryRepository, settingsRepo storage.SettingsRepository) *cli.Command

func NewSyncCommand

func NewSyncCommand(logger *logging.Logger, entryRepo storage.EntryRepository, settingsRepo storage.SettingsRepository) *cli.Command

Types

type AddCommand

type AddCommand struct {
	*cli.Command
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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