8000 [Feature request] option selection in scripts run · Issue #2797 · atuinsh/atuin · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[Feature request] option selection in scripts run #2797
Open
@GaGandour

Description

@GaGandour

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0