Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Align cobra help messages #16

Merged
merged 1 commit into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/alias.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions cmd/collection.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion cmd/integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down
8 changes: 4 additions & 4 deletions cmd/query_lambda.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions cmd/workspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down Expand Up @@ -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=
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package main

var Version = "v0.0.24"
var Version = "v0.0.25"
Loading