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

Implement 'default values' in expressions. #27

Open
4 tasks
zanerock opened this issue Mar 22, 2023 · 0 comments
Open
4 tasks

Implement 'default values' in expressions. #27

zanerock opened this issue Mar 22, 2023 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@zanerock
Copy link
Member

Overview

It's useful to be able to provide default values for non-defined parameters. How about:

  • If a parameter ends in a 't', it defaults to true.
  • If a parameter ends in an 'f', it defaults to false.
  • If a parameter ends in an 'n' followed by a number, it defaults to that number.

Because we'd have to deal with quoting and such, we're not going to deal with default strings just yet.

Deliverables

  • Implement t/f defaults.
  • Implement numeric default support.
  • Ensure that the default appears in the square brackets (or cap Y or N in 'y/n' for bools).
  • Ensure that hitting enter accepts the default and sets the parameter to that value.
@zanerock zanerock added the enhancement New feature or request label Mar 22, 2023
@zanerock zanerock added this to the 1.0.0-beta milestone Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant