From 21e2eaae8dd5f18f19724fcb790f50f7aba79876 Mon Sep 17 00:00:00 2001 From: Dan Merino Date: Tue, 9 Apr 2024 22:53:19 +0000 Subject: [PATCH] Align cobra help messages --- cmd/alias.go | 2 +- cmd/collection.go | 4 ++-- cmd/integration.go | 2 +- cmd/query_lambda.go | 8 ++++---- cmd/workspace.go | 6 +++--- go.sum | 2 ++ version.go | 2 +- 7 files changed, 14 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/go.sum b/go.sum index 16d0c23..57b2a7d 100644 --- a/go.sum +++ b/go.sum @@ -113,6 +113,7 @@ github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46t github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/docker/cli v20.10.17+incompatible h1:eO2KS7ZFeov5UJeaDmIs1NFEDRf32PaqRpvoEkKBy5M= github.com/docker/cli v20.10.17+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8= @@ -302,6 +303,7 @@ github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE github.com/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= 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"