a8m / envsubst

Environment variables substitution for Go
MIT License
768 stars 83 forks source link

add an -inplace option? #4

Open Mistobaan opened 7 years ago

Mistobaan commented 7 years ago

I think it would be useful to add an --inplace option where the target destination file is the source file :)

a8m commented 7 years ago

sounds like a good idea. but imo, -w is a better name for the flag. (similar to gofmt).

icy commented 4 years ago

I think it would be useful to add an --inplace option where the target destination file is the source file :)

I think you can just use https://linux.die.net/man/1/sponge ?

polarathene commented 1 year ago

For reference a similar CLI tool (written in Rust) also uses -w: https://github.com/igtm/envbed