Documentation ¶
Index ¶
- func ErrorAndExit(format string, args ...interface{})
- func ParseCommits(args []string) ([]*pfs.Commit, error)
- func RunBoundedArgs(min int, max int, run func([]string) error) func(*cobra.Command, []string)
- func RunFixedArgs(numArgs int, run func([]string) error) func(*cobra.Command, []string)
- type RepeatedStringArg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorAndExit ¶
func ErrorAndExit(format string, args ...interface{})
ErrorAndExit errors with the given format and args, and then exits.
func ParseCommits ¶
ParseCommits takes a slice of arguments of the form "repo/commit-id" or "repo" (in which case we consider the commit ID to be empty), and returns a list of Commits
func RunBoundedArgs ¶
RunBoundedArgs wraps a function in a function that checks its argument count is within a range.
Types ¶
type RepeatedStringArg ¶
type RepeatedStringArg []string
RepeatedStringArg is an alias for []string
func (*RepeatedStringArg) Set ¶
func (r *RepeatedStringArg) Set(s string) error
Set adds a string to r
func (*RepeatedStringArg) String ¶
func (r *RepeatedStringArg) String() string
func (*RepeatedStringArg) Type ¶
func (r *RepeatedStringArg) Type() string
Type returns the string representation of the type of r
Click to show internal directories.
Click to hide internal directories.