()
| 69 | } |
| 70 | |
| 71 | func (cmd HelpCommand) displayHelpPreamble() { |
| 72 | cmd.UI.DisplayHeader("NAME:") |
| 73 | cmd.UI.DisplayText(sharedaction.AllCommandsIndent+"{{.CommandName}} - {{.CommandDescription}}", |
| 74 | map[string]interface{}{ |
| 75 | "CommandName": cmd.Config.BinaryName(), |
| 76 | "CommandDescription": cmd.UI.TranslateText("A command line tool to interact with Cloud Foundry"), |
| 77 | }) |
| 78 | cmd.UI.DisplayNewline() |
| 79 | |
| 80 | cmd.UI.DisplayHeader("USAGE:") |
| 81 | cmd.UI.DisplayText(sharedaction.AllCommandsIndent+"{{.CommandName}} {{.CommandUsage}}", |
| 82 | map[string]interface{}{ |
| 83 | "CommandName": cmd.Config.BinaryName(), |
| 84 | "CommandUsage": cmd.UI.TranslateText("[global options] command [arguments...] [command options]"), |
| 85 | }) |
| 86 | cmd.UI.DisplayNewline() |
| 87 | |
| 88 | cmd.UI.DisplayHeader("VERSION:") |
| 89 | cmd.UI.DisplayText(sharedaction.AllCommandsIndent + cmd.Config.BinaryVersion()) |
| 90 | cmd.UI.DisplayNewline() |
| 91 | } |
| 92 | |
| 93 | func (cmd HelpCommand) displayAllCommands(pluginCommands []configv3.PluginCommand, cmdInfo map[string]sharedaction.CommandInfo, longestCmd int) { |
| 94 | cmd.displayCommandGroups(internal.HelpCategoryList, cmdInfo, longestCmd) |
no test coverage detected