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

[Feature request] Default values for vars #7

Closed
nate-sys opened this issue Nov 15, 2023 · 1 comment
Closed

[Feature request] Default values for vars #7

nate-sys opened this issue Nov 15, 2023 · 1 comment

Comments

@nate-sys
Copy link
Contributor

It would be nice to have default values that can be overriden if needed.

Here are some syntax/usage suggestions

menu http {
    test: {
        vars route="index", port=8080
        "make a test request" - "curl http://127.0.0.1:$port/$route"
    }
}

And the ui could look something like

value for route ("index"): 
value for port (8080):
@KnorrFG
Copy link
Owner

KnorrFG commented Nov 15, 2023

Good idea, It's on the todo list 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants