Closed georgjaehnig closed 7 years ago
The second commit Bash script as alternative to makefile.
allows me to
invoice-boilerplate
repository in my ~/code
dir, leave it untouched and constantly pull the newest commitsPATH
dir ~/bin
to ~/code/invoice-boilerplate/pandoc-invoice
~/invoices
and generate them with pandoc-invoice invoice1.yml my-base.yml
my-base.yml
are my actual settings like my name and city)So the goal of this commit is to allow a setup where people can keep the repository checkout on their machine, keep it up to date with git pull
and actually generate their invoices with it.
This is a cool system but I prefer to keep things super simple and boilerplate code to a minimum, so that users are free to modify it to their taste and integrate it in their system as it's best for them (like you did here).
make
is a standard Unix tool and integrates nicely with other tools, like text editors. Using it as a simple wrapper for the actual Pandoc command is the simplest, most elegant and less opinionated solution for this.
My name and closing note is always the same, so it shouldn't be redundant in all invoice details.