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

Allow altering of other file types #133

Open
mgrsskls opened this issue Mar 16, 2021 · 1 comment
Open

Allow altering of other file types #133

mgrsskls opened this issue Mar 16, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@mgrsskls
Copy link
Member

It would be nice to have the possibility to alter other file types (similar to alter_json_file and alter_yaml_file).

My current use case is that I simply want to append something to an existing file (i.a. adding more lines to a .gitignore). In that case something something like append_to_file(".gitignore", "node_modules") would be cool!

@mgrsskls mgrsskls added the enhancement New feature or request label Mar 16, 2021
@stmh
Copy link
Member

stmh commented Mar 16, 2021

In the meantime you can use bash for that, e.g.

- echo "ignore_me" >> %rootFolder%/.gitignore

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

2 participants