pet icon indicating copy to clipboard operation
pet copied to clipboard

[Feature Request] Support multiple default values for params

Open sgutwein opened this issue 2 years ago • 5 comments

Would be nice to have the option to define multiple default params. After executing the command it should be possible to choose between them.

E.g. <stage=dev;qa;prod> or something similar.

sgutwein avatar Feb 07 '22 15:02 sgutwein

+1 and (or alternatively) it would be also great if there is the option to show a short description/hint for every parameter.

smartmic avatar Feb 07 '22 20:02 smartmic

+1

jkldrr avatar Feb 08 '22 10:02 jkldrr

It would be also something absolutely fantastic to build this list from a result of another script, for example

[[snippets]]

description = "Activate gcloud configuration"
command  =  "gcloud config configurations activate <param_command=gcloud config configurations list>"

Then in execution window a small list to select out of the param_commands.

Best regards, Jarek

jaroslawhartman avatar Mar 10 '22 12:03 jaroslawhartman

hey, guys. I support this in PR #203

hitzhangjie avatar May 23 '22 18:05 hitzhangjie

Only concern with this I'd say is the choice of the separator. ; is used in bash to separate commands, | is used a LOT in different commands so that's definitely a no-go.

We just need to find the best character (least used, unrelated to bash) to be used as a separator. @hitzhangjie @sgutwein

RamiAwar avatar Jan 29 '24 14:01 RamiAwar