mirror of
https://github.com/wahyd4/forego.git
synced 2026-08-09 05:07:05 +10:00
help cleanup
This commit is contained in:
@@ -9,7 +9,8 @@ import (
|
||||
|
||||
var cmdHelp = &Command{
|
||||
Usage: "help [topic]",
|
||||
Long: `Help shows usage for a command or other topic.`,
|
||||
Short: "Show this help",
|
||||
Long: `Help shows usage for a command.`,
|
||||
}
|
||||
|
||||
func init() {
|
||||
@@ -37,9 +38,10 @@ func runHelp(cmd *Command, args []string) {
|
||||
}
|
||||
|
||||
var usageTemplate = template.Must(template.New("usage").Parse(`
|
||||
Usage: forego [command] [options] [arguments]
|
||||
{{range .Commands}}{{if .Runnable}}{{if .List}}
|
||||
{{.Name | printf "%-8s"}} {{.Short}}{{end}}{{end}}{{end}}
|
||||
Usage: foreman <command> [<args>]
|
||||
|
||||
Available commands:{{range .Commands}}{{if .Runnable}}{{if .List}}
|
||||
{{.Name | printf "%-8s"}} {{.Short}}{{end}}{{end}}{{end}}
|
||||
|
||||
Run 'forego help [command]' for details.`[1:]))
|
||||
|
||||
|
||||
@@ -11,15 +11,14 @@ var flagEnv string
|
||||
var cmdStart = &Command{
|
||||
Run: runStart,
|
||||
Usage: "start [-f procfile] [-e env] [-c concurrency]",
|
||||
Short: "start the app",
|
||||
Short: "Start the application",
|
||||
Long: `
|
||||
Start the application specified by a Procfile (defaults to ./Procfile)
|
||||
|
||||
Examples:
|
||||
|
||||
forego start
|
||||
|
||||
forego start -f Procfile.test -e .env.test
|
||||
forego start
|
||||
forego start -f Procfile.test -e .env.test
|
||||
`,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user