Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LsCmd = CommandEnum{"ls", 4, errors.New("argument size error. ls command can be used by -t ${tagName},-s ${searchWord} format and -g(grepmode option). "), Ls} AddCmd = CommandEnum{"add", 5, errors.New("argument size error. add command can receive bookmarkId and up to three tags. "), Add} RmCmd = CommandEnum{"rm", 2, errors.New("argument size error. rm command can receive only bookmarkId . "), Rm} ImportCmd = CommandEnum{"import", 2, errors.New("argument size error. import command can receive chrome'sbookmark export file. "), Import} OpenCmd = CommandEnum{"open", 2, errors.New("argument size error. open command can receive only bookmarkId. "), Open} )
EnumValueList
Functions ¶
Types ¶
type CommandEnum ¶
type CommandEnum struct {
// contains filtered or unexported fields
}
CommandEnum defines each-command's argumentsSize, go-function.
func GetCommandEnum ¶
func GetCommandEnum(commandName string) *CommandEnum
GetCommandEnum returns commandEnum type by commandname string.
func (*CommandEnum) GetArgSize ¶
func (cmdEnum *CommandEnum) GetArgSize() int
GetArgSize returns how many arguments command can receive.
func (*CommandEnum) GetArgumentSizeErrorMessage ¶
func (cmdEnum *CommandEnum) GetArgumentSizeErrorMessage() error
GetArgumentSizeErrorMessage returns argument-size error type
Source Files
¶
Click to show internal directories.
Click to hide internal directories.