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

CLI commands and sub-commands are listed sort of randomly in help message #20017

Closed
rsvoboda opened this issue Sep 9, 2021 · 2 comments · Fixed by #20032
Closed

CLI commands and sub-commands are listed sort of randomly in help message #20017

rsvoboda opened this issue Sep 9, 2021 · 2 comments · Fixed by #20032
Assignees
Labels
area/cli Related to quarkus cli (not maven/gradle/etc.) kind/bug Something isn't working
Milestone

Comments

@rsvoboda
Copy link
Member

rsvoboda commented Sep 9, 2021

Describe the bug

CLI commands and sub-commands are listed sort of randomly in help message.

For example extension and registry have add / list / remove sub-commands but they are listed in different order.

Maybe everything should be alphabetically ordered for simplicity or at least the same sub-commands should have the same order in help

qss --help
...
Commands:
  create                  Create a new project.
    app                   Create a Quarkus application project.
    cli                   Create a Quarkus command-line project.
    extension             Create a Quarkus extension project
  build                   Build the current project.
  dev                     Run the current project in dev (live coding) mode.
  extension, ext          Configure extensions of an existing project.
    list, ls              List platforms and extensions.
    categories, cat       List extension categories.
    add                   Add extension(s) to this project.
    remove, rm            Remove extension(s) from this project.
  registry                Configure Quarkus registry client
    add                   Add a Quarkus extension registry
    list                  List enabled Quarkus registries
    remove                Remove a Quarkus extension registry
  version                 Display version information.
  completion              bash/zsh completion:  source <(quarkus completion)

Expected behavior

Commands and sub-commands should be alphabetically ordered or at least to have some consistency in ordering for sub-commands with the same name

Actual behavior

CLI commands and sub-commands are listed sort of randomly in help message

How to Reproduce?

qss --help

Output of uname -a or ver

macOS BigSur

Output of java -version

Java 11

GraalVM version (if different from Java)

No response

Quarkus version or git rev

main

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

@rsvoboda rsvoboda added the kind/bug Something isn't working label Sep 9, 2021
@quarkus-bot quarkus-bot bot added the area/cli Related to quarkus cli (not maven/gradle/etc.) label Sep 9, 2021
@quarkus-bot
Copy link

quarkus-bot bot commented Sep 9, 2021

/cc @ebullient, @maxandersen

@ebullient
Copy link
Member

ebullient commented Sep 9, 2021

They aren't "random". This is a deliberate order (at the gross level).

I can see how the difference between list/add/remove for extensions vs. registries would be annoying, so I'll make some adjustments to make them consistent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli Related to quarkus cli (not maven/gradle/etc.) kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants