fix: add languages command to cmd root (#1127)

Also add a little more information to the short description.

Signed-off-by: Lance Ball <lball@redhat.com>
This commit is contained in:
Lance Ball 2022-07-20 11:59:01 -04:00 committed by GitHub
parent 36216e7fed
commit 59df756e49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -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.
@ -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.

View File

@ -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