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 append and prepend commands #20

Open
loreanvictor opened this issue Jul 26, 2023 · 1 comment
Open

Add append and prepend commands #20

loreanvictor opened this issue Jul 26, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@loreanvictor
Copy link
Owner

These are useful for reusable recipes, as they might need to add to some files (for example, the README) without wholesale changing them. They should read some file, replace all variables in it, and append/prepend the content to some other file (without updating their variables).

prepend: header.md
to: README.md

Should it also support glob pattern? I am unsure, lets not do it for the first iteration at least.

@loreanvictor loreanvictor added the enhancement New feature or request label Jul 26, 2023
@loreanvictor
Copy link
Owner Author

considering #4 , perhaps it is useful to have the input value be an expression instead of a file path:

prepend: "# Hallo!"
to: README.md

and have the combination of these two features handle appending / prepending files:

prepend:
  from file: header.md
to: README.md

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