mna/trofaf

Option for a configuration file.

Closed this issue · 3 comments

Yes, you can use flags all the time, but it's more convenient to have a config file. Could this ever be a possibility?

I'm actually working on this feature at the moment. I should have it functioning shortly. I'm using encoding/json and the defined object type.

mna commented

Really, guys, there's literally 7 command-line options, 2 of which are mutually exclusive and simple booleans, 2 other are integers. What happened to bash scripts? :)

Sorry, but I won't include config file support, this is by design a very minimalist blog engine, I don't want it to grow to become everything for everyone, there's already many other engines for this. Also, see #3 .

I agree with your decision, largely, so I won't open a PR for this, but I implemented very basic configuration files over on my fork just to see how hard it would be. It turns out that, because of the fantastic go-flags package you use, it was really only a few lines of code.