Skip to content

Commit

Permalink
fix: add languages command to cmd root (#1127)
Browse files Browse the repository at this point in the history
Also add a little more information to the short description.

Signed-off-by: Lance Ball <lball@redhat.com>
  • Loading branch information
lance committed Jul 20, 2022
1 parent 36216e7 commit 59df756
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/languages.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
func NewLanguagesCmd(newClient ClientFactory) *cobra.Command {
cmd := &cobra.Command{
Use: "languages",
Short: "Languages",
Short: "List available function language runtimes",
Long: `
NAME
{{.Name}} languages - list available language runtimes.
Expand All @@ -33,7 +33,7 @@ DESCRIPTION
To specify a URI of a single, specific repository for which languages
should be displayed, use the --repository flag.
To see templates available for a given language, see the 'templates' command.
Expand Down
1 change: 1 addition & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ EXAMPLES
cmd.AddCommand(NewRunCmd(newClient))
cmd.AddCommand(NewCompletionCmd())
cmd.AddCommand(NewVersionCmd(config.Version))
cmd.AddCommand(NewLanguagesCmd(newClient))

// Help
// Overridden to process the help text as a template and have
Expand Down

0 comments on commit 59df756

Please sign in to comment.