Description
Atuin can help us run small scripts with atuin scripts run <script>
. This script is saved on the machine and we can even set variables with {{variable}}
. When executing something like echo {{var}}
, we are prompted to give the value for "var".
My request is that, besides this variable feature, we have another kind of variable, but with fixed options. If I know a certain variable will always be one of three values, for example, I would like not to have to write the value, but rather have some kind of menu with the options.
We could write the atuin script something like this:
echo {{{var|hello/world/hello world}}}
And then, when running atuin scripts run <script>
, it should give a message like:
This script contains template variables that need values:
Choose value for 'var':
<menu with options hello, world and hello world>
Of course the syntax should not be the one I presented here, but I wanted to express my idea here.