tomnomnom / anew

A tool for adding new lines to files, skipping duplicates
MIT License
1.34k stars 147 forks source link

main.go: split main into Anew function and main so it can be exported and used… #8

Closed manasmbellani closed 2 years ago

manasmbellani commented 4 years ago

… by other golang scripts. Tested and this script appears to work fine as well.

tomnomnom commented 2 years ago

Apologies but this now conflicts due to me finally catching up with other PRs.

If this could be fixed up (including not using github.com/manasmbellani/anew/anewlib as an import path) I could merge it. I'd also prefer a name other than anewlib to be honest, but I don't know exactly what that should be.

Thank you for your contribution even though it won't be merged at this time!