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

Add subcommands alias #11

Open
jordeu opened this issue Sep 7, 2021 · 7 comments
Open

Add subcommands alias #11

jordeu opened this issue Sep 7, 2021 · 7 comments
Assignees
Labels
enhancement New feature or request

Comments

@jordeu
Copy link
Member

jordeu commented Sep 7, 2021

Ex:

compute-env -> ce
credentials -> creds
pipelines -> pipes

@pditommaso
Copy link
Contributor

Nice, think even without s

compute-env -> ce
credentials -> cred
pipelines -> pipe

@jordeu
Copy link
Member Author

jordeu commented Sep 7, 2021

There is a bug at picocli library when generating the autocompletion scripts for the subcommands aliases:
remkop/picocli#1388

This will be implemented when this bug is fixed.

@jordeu jordeu added this to the 1.0.0-beta milestone Sep 14, 2021
@jordeu jordeu removed this from the 1.0.0-beta milestone Oct 1, 2021
@jordeu
Copy link
Member Author

jordeu commented Nov 5, 2021

picocli 4.6.2, fixing the issue with subcommand aliases, has been released.
https://github.com/remkop/picocli/releases/tag/v4.6.2

@jordeu jordeu removed the on hold label Nov 5, 2021
@jordeu
Copy link
Member Author

jordeu commented Nov 9, 2021

The only difficulty of this issue is to decide which is the best alias. Let me do a proposal and if we agree on it we can add this to 0.5 release.

Main commands:

  • actions ->
  • collaborators ->
  • compute-envs -> ce
  • credentials -> creds
  • info ->
  • launch ->
  • members ->
  • organizations -> orgs
  • participants ->
  • pipelines -> pipes
  • runs ->
  • teams ->
  • workspaces -> ws

Subcommands:

  • list -> l
  • view -> v
  • delete -> d
  • create -> c
  • update -> u
  • export -> e
  • import -> i
  • leave -> (also at commands that have list subcommand)
  • relaunch -> r (only at runs command`)
  • cancel -> c (only at runs command`)

@pditommaso
Copy link
Contributor

Think in the shortcut the s can be omitted (apart ws..`) eg.

actions -> action
collaborators -> collab
compute-envs -> ce
credentials -> cred
info -> into 
launch -> launch
members -> member
organizations -> org
participants -> ??
pipelines -> pipe
runs -> run 
teams -> team
workspaces -> ws

@jordeu jordeu added this to the v0.5 milestone Nov 15, 2021
@grananda grananda self-assigned this Nov 29, 2021
@grananda grananda linked a pull request Nov 29, 2021 that will close this issue
@jordeu
Copy link
Member Author

jordeu commented Nov 30, 2021

Picocli v4.6.2 do not fixed the autocomplete. Still the completion of the subcommands using alias is not working:
Screenshot from 2021-11-30 08-48-45

I'm going to label this as "on hold" again. We need to report this to picocli because it seems it is not reported.

@jordeu jordeu added the on hold label Nov 30, 2021
@jordeu jordeu removed this from the v0.5 milestone Nov 30, 2021
@jordeu
Copy link
Member Author

jordeu commented Feb 9, 2022

New picocli released: https://github.com/remkop/picocli/releases/tag/v4.6.3

Some improvements on alias autocompletion. We can give it a try again.

@jordeu jordeu removed the on hold label Feb 9, 2022
@jordeu jordeu added the enhancement New feature or request label Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants