cmd

package
v2.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2017 License: MIT Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ERR_ADD_CMD     = errors.New("failed to add new entry")
	ERR_MISSED_ARGS = errors.New("missed args")
)
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 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