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

[Gitpod CLI] Display helper for unknown subcommands #14630

Merged
merged 1 commit into from
Nov 12, 2022

Conversation

andreafalzetti
Copy link
Contributor

@andreafalzetti andreafalzetti commented Nov 11, 2022

Description

Running unknown subcommands of ports and tasks would not return any output which is an odd and confusing behaviour.

The reason being that the helper is only triggered when there are no args. Unknown subcommands that don't match registered subcommands are considered arguments and the helper is only displayed when there are no arguments.

Screenshot 2022-11-11 at 19 46 06

Related Issue(s)

Fixes #

How to test

  1. Start a workspace
  2. Run gp ports XXX observe how the helper and an error are displayed
  3. Run gp ports list to make sure subcommands continue to work
  4. Run gp tasks XXX observe how the helper and an error are displayed
  5. Run gp tasks list to make sure subcommands continue to work

Release Notes

[Gitpod CLI] Display helper for unknown subcommands

Documentation

Werft options:

  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-large-vm
  • /werft with-integration-tests=all
    Valid options are all, workspace, webapp, ide, jetbrains, vscode, ssh

@werft-gitpod-dev-com
Copy link

started the job as gitpod-build-afalz-gp-cli-unknwon-subcmds.1 because the annotations in the pull request description changed
(with .werft/ from main)

@andreafalzetti andreafalzetti force-pushed the afalz/gp-cli-unknwon-subcmds branch from 7fccb8e to 7996257 Compare November 11, 2022 18:47
@roboquat roboquat added size/XS and removed size/S labels Nov 11, 2022
@andreafalzetti andreafalzetti marked this pull request as ready for review November 11, 2022 23:02
@andreafalzetti andreafalzetti requested a review from a team November 11, 2022 23:02
Copy link
Contributor

@felladrin felladrin left a comment

Choose a reason for hiding this comment

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

Nice addition! 🚀

@roboquat roboquat merged commit e052cd2 into main Nov 12, 2022
@roboquat roboquat deleted the afalz/gp-cli-unknwon-subcmds branch November 12, 2022 10:16
@roboquat roboquat added deployed: IDE IDE change is running in production deployed Change is completely running in production labels Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: gp cli deployed: IDE IDE change is running in production deployed Change is completely running in production release-note size/XS team: IDE
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants