Skip to content

Commit

Permalink
Align cobra help messages (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
slaminad authored Apr 9, 2024
1 parent ff08047 commit 628e623
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
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: 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"

0 comments on commit 628e623

Please sign in to comment.