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

feat: show help page when user tries to run placeholder commands #1952

Merged
merged 1 commit into from
Feb 7, 2023

Conversation

mathnogueira
Copy link
Member

@mathnogueira mathnogueira commented Feb 7, 2023

If user tries to run the following commands, it will get a help page for the command:

  • tracetest
  • tracetest datastore
  • tracetest environment
  • tracetest server
  • tracetest test

based on @danielbdias's idea.

Checklist

  • tested locally
  • added new dependencies
  • updated the docs
  • added a test

If user tries to run the following commands, it will get a help page for
the command:

* tracetest
* tracetest datastore
* tracetest environment
* tracetest server
* tracetest test
@@ -13,9 +10,7 @@ var dataStoreCmd = &cobra.Command{
Long: "Manage your tracetest data stores",
PreRun: setupCommand(),
Run: func(cmd *cobra.Command, args []string) {
analytics.Track("Datastore", "cmd", map[string]string{})
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed those analytics events because there were useless for us. Besides, we are going to remove analytics from the CLI in a near future.

@mathnogueira mathnogueira merged commit 7901160 into main Feb 7, 2023
@mathnogueira mathnogueira deleted the cli/root-cmd-help branch February 7, 2023 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants