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

[cmd-line] Select image for (more) commands #676

Open
PalumboN opened this issue Feb 29, 2024 · 2 comments
Open

[cmd-line] Select image for (more) commands #676

PalumboN opened this issue Feb 29, 2024 · 2 comments

Comments

@PalumboN
Copy link

Describe the request

Now when you execute some image related command, the prompt ask you for the image index if you don't pass it as parameter.

~ pl image launch
1  p11-druid-with-mutalk               
2  p11-druid-specialize-primitiveAt    
...
Select the image number:  

This feature works with: launch, delete and recreate.


However, it's missing for the commands: info, copy and package (I think that I don't forget anyone).

Would be nice to have the same behaviour in all of them.

Version information:

➜ pl -v
3.1.1-476-g723df186
@demarey
Copy link
Contributor

demarey commented Feb 29, 2024

I just added it for the info command.
For the copy and package command, it is more difficult because the image name is declared as a mandatory positional in the command spec.
Also, it will mean that copy command could be used like: copy newImageNameand the select the existing image instead of copy existingImageName newImageName.
I'm not sure it would be best. Maybe we should wait and see how PL CLI users want to use this command?

@PalumboN
Copy link
Author

Niceee!!! 🙌

@demarey demarey added the on hold label Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants