Versions in this module Expand all Collapse all v0 v0.8.1 Jun 5, 2015 Changes in this version + const DQ + const MODE_LS + const MODE_PECO + const SHELL_BASH + const SHELL_ZSH + const SQ + const VERSION + var BIND = regexp.MustCompile("(\\{:([0-9a-zA-Z\\.@\\-_]+?)\\})") + var CYAN = ansi.ColorCode("cyan") + var CYANB = ansi.ColorCode("cyan+b") + var DOUBLE_SPACE = regexp.MustCompile("\\s{2,}") + var GANG = fmt.Sprint(MAGENTAB, "[gang] ", RESET) + var GREEN = ansi.ColorCode("green") + var GREENB = ansi.ColorCode("green+b") + var MAGENTA = ansi.ColorCode("magenta") + var MAGENTAB = ansi.ColorCode("magenta+b") + var RED = ansi.ColorCode("red") + var REDB = ansi.ColorCode("red+b") + var RESET = ansi.ColorCode("reset") + func EPrint(message string) + func EPrintf(format string, args ...interface{}) + func EPrintln(message string) + func ESprint(message string) string + func ESprintf(format string, args ...interface{}) string + func GetInputOfSelectIndex(list []string) int + func GetInputOfYesNo(msg string) bool + func Print(message string) + func Printf(format string, args ...interface{}) + func Println(message string) + func QPrint(message string) + func QPrintf(format string, args ...interface{}) + func QPrintln(message string) + func QSprint(message string) string + func QSprintf(format string, args ...interface{}) string + func Scanf(format string, capture ...interface{}) (int, error) + func ShowHelp() + func Sprint(message string) string + func Sprintf(format string, args ...interface{}) string + type Command struct + Cmd string + Name string + Times int + func (c *Command) Increment() + func (c Command) String(size int) string + type CommandList []Command + func (cl CommandList) Add(name, cmd string) + func (cl CommandList) Find(name string) *Command + func (cl CommandList) FindIndex(index int) *Command + func (cl CommandList) GetMaxNameSize() (max int) + func (cl CommandList) Kill(name string) (killed bool) + func (cl CommandList) Len() int + func (cl CommandList) Less(i, j int) bool + func (cl CommandList) Swap(i, j int) + type Config struct + Commands CommandList + ListMode string + Shell string + func (c *Config) Save() + type Operation struct + func NewOperation(conf *Config) *Operation + func (o *Operation) RunBullet(name string, nameOk bool, cmd string, cmdOk bool) int + func (o *Operation) RunCommand(cmd string) int + func (o *Operation) RunDefault(cmd string) int + func (o *Operation) RunKill(name string) int + func (o *Operation) RunList(list []string) int + func (o *Operation) RunListMode(mode string) int + func (o *Operation) RunShell(command string) int + func (o *Operation) RunShellMode(shell string) int + type Runner struct + func NewRunner(args *cliarg.Arguments) *Runner + func (r *Runner) Run() + type Shell struct + func NewShell(cmd string) *Shell + func (s *Shell) Run() ([]byte, error)