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

Add support for @FILE #7

Merged
merged 1 commit into from
May 27, 2023
Merged

Add support for @FILE #7

merged 1 commit into from
May 27, 2023

Conversation

sayanarijit
Copy link
Owner

@sayanarijit sayanarijit commented May 26, 2023

  • Use %-s, %-q, %*-s, %*-q, %**-s, %**-q syntax to read from stdin.
  • Use %(NAME@FILE) syntax to read default value from file.
  • Use %(NAME@-) syntax to read default value from stdin.
  • Use NAME@FILE to pass default value for named placeholder from file.
  • Use NAME@- to pass default value for named placeholder from stdin.
  • Stdin values are separated by null (\0).

@sayanarijit sayanarijit force-pushed the @FILE branch 19 times, most recently from 69c6bac to 271824e Compare May 27, 2023 05:40
- Use `%-s`, `%-q`, `%*-s`, `%*-q`, `%**-s`, `%**-q` syntax to read from stdin.
- Use `%(NAME@FILE)` syntax to read default value from file.
- Use `%(NAME@-)` syntax to read default value from stdin.
- Use `NAME@FILE` to pass default value for named placeholder from file.
- Use `NAME@-` to pass default value for named placeholder from stdin.
- Stdin values are separated by null (`\0`).

Also, display better error for invalid expandable placeholder syntax.
@sayanarijit sayanarijit merged commit b7fb344 into main May 27, 2023
1 check passed
@sayanarijit sayanarijit deleted the @FILE branch May 27, 2023 06:28
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

Successfully merging this pull request may close these issues.

None yet

1 participant