Allow CLI commands to select a template, image or vm by sequence number
Describe the request
Currently, images or templates can be identified only by full name that match exact name in the list.
Example: ./pharo-launcher.sh image launch "myImageName"
As a shortcut, we may support sequence nr. for our users like this: ./pharo-launcher.sh image launch #1 instead of name. Sequence number is the order as the images or templates are listed by list command e.g.:
Expected behavior
When sequence number argument is used, #<nr> validation of argument should happen and checked, if it matches the item in list (check ranges of list compared to provided argument).
Name should be printed as a result of image or template operation as a visual verification to user, so he/she is sure he used right sequence number.
Expected development cost
Add validator of argument on image, template, vm commands.
Additional context
Note: Sequence number will refer to different image or template, when combining with create or delete.
Allow CLI commands to select a template, image or vm by sequence number
Describe the request Currently, images or templates can be identified only by full name that match exact name in the list. Example:
./pharo-launcher.sh image launch "myImageName"
As a shortcut, we may support sequence nr. for our users like this:./pharo-launcher.sh image launch #1
instead of name. Sequence number is the order as the images or templates are listed by list command e.g.:Expected behavior When sequence number argument is used,
#<nr>
validation of argument should happen and checked, if it matches the item in list (check ranges of list compared to provided argument). Name should be printed as a result of image or template operation as a visual verification to user, so he/she is sure he used right sequence number.Expected development cost Add validator of argument on image, template, vm commands.
Additional context Note: Sequence number will refer to different image or template, when combining with create or delete.