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

chore(cli): Change CLI output to include arch #56

Merged
merged 1 commit into from
Feb 17, 2021
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
8 changes: 5 additions & 3 deletions cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,25 @@ package cmd

import (
"fmt"

"github.com/spf13/cobra"
"runtime"
)

// versionCmd represents the version command
var versionCmd = &cobra.Command{
Use: "version",
Short: "Display the version of the Meroxa CLI",
Short: "Display the Meroxa CLI version",
Run: func(cmd *cobra.Command, args []string) {
fmt.Printf("Meroxa CLI version %s\n", meroxaVersion)
fmt.Printf("meroxa/%s %s/%s\n", meroxaVersion, runtime.GOOS, runtime.GOARCH)
},
}

func init() {
RootCmd.AddCommand(versionCmd)
}

// Before changing this function, we'll need to update how the we're using the User-Agent when interacting with
// Platform-API: https://git.io/JtXCG
func versionString() string {
return fmt.Sprintf("Meroxa CLI %s", meroxaVersion)
}
4 changes: 2 additions & 2 deletions docs/commands/meroxa.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ meroxa list resource-types
* [meroxa logout](meroxa_logout.md) - Logout of the Meroxa platform
* [meroxa logs](meroxa_logs.md) - Print logs for a component
* [meroxa signup](meroxa_signup.md) - Sign up to the Meroxa platform
* [meroxa version](meroxa_version.md) - Display the version of the Meroxa CLI
* [meroxa version](meroxa_version.md) - Display the Meroxa CLI version

###### Auto generated by spf13/cobra on 12-Feb-2021
###### Auto generated by spf13/cobra on 15-Feb-2021
2 changes: 1 addition & 1 deletion docs/commands/meroxa_add.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ Use the add command to add various Meroxa resources to your account.
* [meroxa](meroxa.md) - The Meroxa CLI
* [meroxa add resource](meroxa_add_resource.md) - Add a resource to your account

###### Auto generated by spf13/cobra on 12-Feb-2021
###### Auto generated by spf13/cobra on 15-Feb-2021
2 changes: 1 addition & 1 deletion docs/commands/meroxa_add_resource.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ meroxa add resource <resource-type> [flags]

* [meroxa add](meroxa_add.md) - Add a Meroxa resource

###### Auto generated by spf13/cobra on 12-Feb-2021
###### Auto generated by spf13/cobra on 15-Feb-2021
2 changes: 1 addition & 1 deletion docs/commands/meroxa_completion.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ meroxa completion [bash|zsh|fish|powershell]

* [meroxa](meroxa.md) - The Meroxa CLI

###### Auto generated by spf13/cobra on 12-Feb-2021
###### Auto generated by spf13/cobra on 15-Feb-2021
2 changes: 1 addition & 1 deletion docs/commands/meroxa_connect.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ meroxa connect <name> --to <name> [flags]

* [meroxa](meroxa.md) - The Meroxa CLI

###### Auto generated by spf13/cobra on 12-Feb-2021
###### Auto generated by spf13/cobra on 15-Feb-2021
2 changes: 1 addition & 1 deletion docs/commands/meroxa_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ including Connectors.
* [meroxa create connector](meroxa_create_connector.md) - Create a connector
* [meroxa create pipeline](meroxa_create_pipeline.md) - Create a pipeline

###### Auto generated by spf13/cobra on 12-Feb-2021
###### Auto generated by spf13/cobra on 15-Feb-2021
2 changes: 1 addition & 1 deletion docs/commands/meroxa_create_connector.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ meroxa create connector [flags]

* [meroxa create](meroxa_create.md) - Create meroxa pipeline components

###### Auto generated by spf13/cobra on 12-Feb-2021
###### Auto generated by spf13/cobra on 15-Feb-2021
2 changes: 1 addition & 1 deletion docs/commands/meroxa_create_pipeline.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ meroxa create pipeline <name> [flags]

* [meroxa create](meroxa_create.md) - Create meroxa pipeline components

###### Auto generated by spf13/cobra on 12-Feb-2021
###### Auto generated by spf13/cobra on 15-Feb-2021
2 changes: 1 addition & 1 deletion docs/commands/meroxa_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ Deprovision a component of the Meroxa platform, including pipelines,
* [meroxa delete pipeline](meroxa_delete_pipeline.md) - Delete pipeline
* [meroxa delete resource](meroxa_delete_resource.md) - Delete resource

###### Auto generated by spf13/cobra on 12-Feb-2021
###### Auto generated by spf13/cobra on 15-Feb-2021
2 changes: 1 addition & 1 deletion docs/commands/meroxa_delete_connector.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ meroxa delete connector <name> [flags]

* [meroxa delete](meroxa_delete.md) - Delete a component

###### Auto generated by spf13/cobra on 12-Feb-2021
###### Auto generated by spf13/cobra on 15-Feb-2021
2 changes: 1 addition & 1 deletion docs/commands/meroxa_delete_pipeline.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ meroxa delete pipeline <name> [flags]

* [meroxa delete](meroxa_delete.md) - Delete a component

###### Auto generated by spf13/cobra on 12-Feb-2021
###### Auto generated by spf13/cobra on 15-Feb-2021
2 changes: 1 addition & 1 deletion docs/commands/meroxa_delete_resource.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ meroxa delete resource <name> [flags]

* [meroxa delete](meroxa_delete.md) - Delete a component

###### Auto generated by spf13/cobra on 12-Feb-2021
###### Auto generated by spf13/cobra on 15-Feb-2021
2 changes: 1 addition & 1 deletion docs/commands/meroxa_describe.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ resources, connectors, etc...
* [meroxa describe connector](meroxa_describe_connector.md) - Describe connector
* [meroxa describe resource](meroxa_describe_resource.md) - Describe resource

###### Auto generated by spf13/cobra on 12-Feb-2021
###### Auto generated by spf13/cobra on 15-Feb-2021
2 changes: 1 addition & 1 deletion docs/commands/meroxa_describe_connector.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ meroxa describe connector [name] [flags]

* [meroxa describe](meroxa_describe.md) - Describe a component

###### Auto generated by spf13/cobra on 12-Feb-2021
###### Auto generated by spf13/cobra on 15-Feb-2021
2 changes: 1 addition & 1 deletion docs/commands/meroxa_describe_resource.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ meroxa describe resource <name> [flags]

* [meroxa describe](meroxa_describe.md) - Describe a component

###### Auto generated by spf13/cobra on 12-Feb-2021
###### Auto generated by spf13/cobra on 15-Feb-2021
2 changes: 1 addition & 1 deletion docs/commands/meroxa_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ List the components of the Meroxa platform, including pipelines,
* [meroxa list resource-types](meroxa_list_resource-types.md) - List resources-types
* [meroxa list resources](meroxa_list_resources.md) - List resources

###### Auto generated by spf13/cobra on 12-Feb-2021
###### Auto generated by spf13/cobra on 15-Feb-2021
2 changes: 1 addition & 1 deletion docs/commands/meroxa_list_connectors.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ meroxa list connectors [flags]

* [meroxa list](meroxa_list.md) - List components

###### Auto generated by spf13/cobra on 12-Feb-2021
###### Auto generated by spf13/cobra on 15-Feb-2021
2 changes: 1 addition & 1 deletion docs/commands/meroxa_list_pipelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ meroxa list pipelines [flags]

* [meroxa list](meroxa_list.md) - List components

###### Auto generated by spf13/cobra on 12-Feb-2021
###### Auto generated by spf13/cobra on 15-Feb-2021
2 changes: 1 addition & 1 deletion docs/commands/meroxa_list_resource-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ meroxa list resource-types [flags]

* [meroxa list](meroxa_list.md) - List components

###### Auto generated by spf13/cobra on 12-Feb-2021
###### Auto generated by spf13/cobra on 15-Feb-2021
2 changes: 1 addition & 1 deletion docs/commands/meroxa_list_resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ meroxa list resources [flags]

* [meroxa list](meroxa_list.md) - List components

###### Auto generated by spf13/cobra on 12-Feb-2021
###### Auto generated by spf13/cobra on 15-Feb-2021
2 changes: 1 addition & 1 deletion docs/commands/meroxa_login.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ meroxa login [flags]
* [meroxa](meroxa.md) - The Meroxa CLI
* [meroxa login whoami](meroxa_login_whoami.md) - Display effective username

###### Auto generated by spf13/cobra on 12-Feb-2021
###### Auto generated by spf13/cobra on 15-Feb-2021
2 changes: 1 addition & 1 deletion docs/commands/meroxa_login_whoami.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ meroxa login whoami [flags]

* [meroxa login](meroxa_login.md) - Log into the Meroxa platform

###### Auto generated by spf13/cobra on 12-Feb-2021
###### Auto generated by spf13/cobra on 15-Feb-2021
2 changes: 1 addition & 1 deletion docs/commands/meroxa_logout.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ meroxa logout [flags]

* [meroxa](meroxa.md) - The Meroxa CLI

###### Auto generated by spf13/cobra on 12-Feb-2021
###### Auto generated by spf13/cobra on 15-Feb-2021
2 changes: 1 addition & 1 deletion docs/commands/meroxa_logs.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ Print logs for a component
* [meroxa](meroxa.md) - The Meroxa CLI
* [meroxa logs connector](meroxa_logs_connector.md) - Print logs for a connector

###### Auto generated by spf13/cobra on 12-Feb-2021
###### Auto generated by spf13/cobra on 15-Feb-2021
2 changes: 1 addition & 1 deletion docs/commands/meroxa_logs_connector.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ meroxa logs connector <name> [flags]

* [meroxa logs](meroxa_logs.md) - Print logs for a component

###### Auto generated by spf13/cobra on 12-Feb-2021
###### Auto generated by spf13/cobra on 15-Feb-2021
2 changes: 1 addition & 1 deletion docs/commands/meroxa_signup.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ meroxa signup [flags]

* [meroxa](meroxa.md) - The Meroxa CLI

###### Auto generated by spf13/cobra on 12-Feb-2021
###### Auto generated by spf13/cobra on 15-Feb-2021
4 changes: 2 additions & 2 deletions docs/commands/meroxa_version.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## meroxa version

Display the version of the Meroxa CLI
Display the Meroxa CLI version

```
meroxa version [flags]
Expand All @@ -22,4 +22,4 @@ meroxa version [flags]

* [meroxa](meroxa.md) - The Meroxa CLI

###### Auto generated by spf13/cobra on 12-Feb-2021
###### Auto generated by spf13/cobra on 15-Feb-2021