MCPcopy
hub / github.com/mislav/hub / UsageError

Method UsageError

commands/commands.go:85–91  ·  view source on GitHub ↗
(msg string)

Source from the content-addressed store, hash-verified

83}
84
85func (c *Command) UsageError(msg string) error {
86 nl := ""
87 if msg != "" {
88 nl = "\n"
89 }
90 return fmt.Errorf("%s%s%s", msg, nl, c.Synopsis())
91}
92
93func (c *Command) Synopsis() string {
94 lines := []string{}

Callers 15

showReleaseFunction · 0.80
downloadReleaseFunction · 0.80
createReleaseFunction · 0.80
editReleaseFunction · 0.80
deleteReleaseFunction · 0.80
compareFunction · 0.80
browseFunction · 0.80
printHelpFunction · 0.80
printGistHelpFunction · 0.80
showGistFunction · 0.80
deleteRepoFunction · 0.80
createFunction · 0.80

Calls 2

SynopsisMethod · 0.95
ErrorfMethod · 0.65

Tested by

no test coverage detected