Documentation ¶
Overview ¶
Package cmd provides all the commands that spinc can run: start, status, etc.
Index ¶
Constants ¶
View Source
const (
RECORD_SEPARATOR = "--\n"
)
Variables ¶
View Source
var (
ErrNotExist = errors.New("command does not exist")
)
Functions ¶
func QuoteArgValue ¶
func SqueezeString ¶
SqueezeString makes string s fit into n characters by truncating and replacing middle characters with x. Example: "hello, world!" squeezed into 5 characters with ".." replacement: "he..!". Preference is given to left-side characters when the truncation is not even. If s is squeezed too hard, it returns an empty string (n - len(x) < 0 = "").
Types ¶
type DefaultFactory ¶
type DefaultFactory struct { }
type ErrUnknownArgs ¶
func (ErrUnknownArgs) Error ¶
func (e ErrUnknownArgs) Error() string
type Help ¶
type Help struct {
// contains filtered or unexported fields
}
func (*Help) RequestHelp ¶
Click to show internal directories.
Click to hide internal directories.