From 628e6233b51c0554da00e0b8c5aa16801f479cf3 Mon Sep 17 00:00:00 2001 From: Dan Merino <42153318+slaminad@users.noreply.github.com> Date: Tue, 9 Apr 2024 16:12:23 -0700 Subject: [PATCH] Align cobra help messages (#16) --- cmd/alias.go | 2 +- cmd/collection.go | 4 ++-- cmd/integration.go | 2 +- cmd/query_lambda.go | 8 ++++---- cmd/workspace.go | 6 +++--- version.go | 2 +- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/cmd/alias.go b/cmd/alias.go index d890207..ed001c1 100644 --- a/cmd/alias.go +++ b/cmd/alias.go @@ -176,7 +176,7 @@ func NewUpdateAliasCmd() *cobra.Command { func NewDeleteAliasCmd() *cobra.Command { cmd := cobra.Command{ - Use: "alias NAME ", + Use: "alias NAME", Aliases: []string{"a"}, Args: cobra.ExactArgs(1), Short: "delete alias", diff --git a/cmd/collection.go b/cmd/collection.go index d90890e..81774ad 100644 --- a/cmd/collection.go +++ b/cmd/collection.go @@ -23,7 +23,7 @@ import ( func newDeleteCollectionCmd() *cobra.Command { cmd := cobra.Command{ - Use: "collection", + Use: "collection NAME", Aliases: []string{"coll", "c"}, Short: "delete collection", Long: "delete Rockset collection", @@ -58,7 +58,7 @@ func newDeleteCollectionCmd() *cobra.Command { func newGetCollectionCmd() *cobra.Command { cmd := cobra.Command{ - Use: "collection", + Use: "collection NAME", Aliases: []string{"coll", "c"}, Short: "get collection", Long: "get Rockset collection", diff --git a/cmd/integration.go b/cmd/integration.go index d8dd360..2a7cdd1 100644 --- a/cmd/integration.go +++ b/cmd/integration.go @@ -15,7 +15,7 @@ import ( func newGetIntegrationCmd() *cobra.Command { return &cobra.Command{ - Use: "integration", + Use: "integration NAME", Short: "get integration", Long: "get Rockset integration", Annotations: group("integration"), diff --git a/cmd/query_lambda.go b/cmd/query_lambda.go index 19abf7a..d823748 100644 --- a/cmd/query_lambda.go +++ b/cmd/query_lambda.go @@ -61,7 +61,7 @@ func newListQueryLambdasCmd() *cobra.Command { func newGetQueryLambdaCmd() *cobra.Command { cmd := cobra.Command{ - Use: "lambda", + Use: "lambda NAME", Aliases: []string{"ql"}, Short: "get query lambda", Long: `get query lambda information, has options to get a specific tag or version, @@ -215,7 +215,7 @@ func NewExecuteQueryLambdaCmd() *cobra.Command { func newCreateQueryLambdaCmd() *cobra.Command { cmd := cobra.Command{ - Use: "lambda", + Use: "lambda NAME", Aliases: []string{"ql"}, Args: cobra.ExactArgs(1), Short: "create query lambda", @@ -270,7 +270,7 @@ func newCreateQueryLambdaCmd() *cobra.Command { func newDeleteQueryLambdaCmd() *cobra.Command { cmd := cobra.Command{ - Use: "lambda", + Use: "lambda NAME", Aliases: []string{"ql"}, Args: cobra.ExactArgs(1), Short: "delete query lambda", @@ -305,7 +305,7 @@ func newDeleteQueryLambdaCmd() *cobra.Command { func newUpdateQueryLambdaCmd() *cobra.Command { cmd := cobra.Command{ - Use: "lambda", + Use: "lambda NAME", Aliases: []string{"ql"}, Args: cobra.ExactArgs(1), Short: "update query lambda", diff --git a/cmd/workspace.go b/cmd/workspace.go index 4a843c9..88349a9 100644 --- a/cmd/workspace.go +++ b/cmd/workspace.go @@ -16,7 +16,7 @@ import ( func newCreateWorkspaceCmd() *cobra.Command { cmd := cobra.Command{ - Use: "workspace", + Use: "workspace NAME", Aliases: []string{"ws"}, Short: "create workspace", Long: "create Rockset workspace", @@ -53,7 +53,7 @@ func newCreateWorkspaceCmd() *cobra.Command { func newDeleteWorkspaceCmd() *cobra.Command { cmd := cobra.Command{ - Use: "workspace", + Use: "workspace NAME", Aliases: []string{"ws"}, Short: "delete workspace", Long: "delete Rockset workspace", @@ -161,7 +161,7 @@ func newDeleteWorkspaceCmd() *cobra.Command { func NewGetWorkspaceCmd() *cobra.Command { return &cobra.Command{ - Use: "workspace", + Use: "workspace NAME", Aliases: []string{"ws"}, Short: "get workspace", Long: "get Rockset workspace", diff --git a/version.go b/version.go index aa5c0fe..791b0a5 100644 --- a/version.go +++ b/version.go @@ -1,3 +1,3 @@ package main -var Version = "v0.0.24" +var Version = "v0.0.25"