mirror of
https://github.com/rancher/os.git
synced 2025-09-05 16:52:20 +00:00
Bump codegangsta/cli
This commit is contained in:
5
vendor/github.com/codegangsta/cli/help.go
generated
vendored
5
vendor/github.com/codegangsta/cli/help.go
generated
vendored
@@ -117,8 +117,9 @@ var HelpPrinter helpPrinter = printHelp
|
||||
var VersionPrinter = printVersion
|
||||
|
||||
// ShowAppHelp is an action that displays the help.
|
||||
func ShowAppHelp(c *Context) {
|
||||
func ShowAppHelp(c *Context) error {
|
||||
HelpPrinter(c.App.Writer, AppHelpTemplate, c.App)
|
||||
return nil
|
||||
}
|
||||
|
||||
// DefaultAppComplete prints the list of subcommands as the default app completion method
|
||||
@@ -191,7 +192,7 @@ func printHelp(out io.Writer, templ string, data interface{}) {
|
||||
"join": strings.Join,
|
||||
}
|
||||
|
||||
w := tabwriter.NewWriter(out, 0, 8, 1, '\t', 0)
|
||||
w := tabwriter.NewWriter(out, 1, 8, 2, ' ', 0)
|
||||
t := template.Must(template.New("help").Funcs(funcMap).Parse(templ))
|
||||
err := t.Execute(w, data)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user