Re:Show HN: Awesome-ci Lot's of tools for git, file and stat...
by stephenr on Saturday November 19, 2016 @10:55AM
(#12993978)
So, every script seems to be a 900+ line bash script, with largely the same boilerplate, and the actual checks/fixes are just one-liners.
While wrapping possibly complex/tricky one-liners with an easy to use shell script makes sense, it seems like they could be optimised to re-use most of the boilerplate in a library file.
Re:Show HN: Awesome-ci Lot's of tools for git, file and stat...
by everythingcli on Sunday November 20, 2016 @04:05AM
(#12998001)
This is true. I tried to make them as generic as possible, so whenever I have to update one of the files, I can just copy/paste a fix to all other files.
This also let's me add other checks/fixes more easily.
I wasn't sure about the best way of having a bash library. Any ideas about this are welcome to hear.
Re:Show HN: Awesome-ci Lot's of tools for git, file and stat...
by stephenr on Sunday November 20, 2016 @06:09AM
(#12998268)
I might look into this more deeply and open some issues to discuss possible improvements. I like the general goal, and these days it's refreshing to see someone not reinventing the wheel with a nodejs script.
While wrapping possibly complex/tricky one-liners with an easy to use shell script makes sense, it seems like they could be optimised to re-use most of the boilerplate in a library file.
This also let's me add other checks/fixes more easily.
I wasn't sure about the best way of having a bash library. Any ideas about this are welcome to hear.