google / addlicense

A program which ensures source code files have copyright license headers by scanning directory patterns recursively
Apache License 2.0
716 stars 169 forks source link

Feature Request: Add a version subcommand #94

Open karlkfi opened 3 years ago

karlkfi commented 3 years ago

I would like to know which version of addlicense I have installed to know whether I need to install a new one to fix a bug or update to the version a repo has pinned.

willnorris commented 2 years ago

I suspect the embedded source information coming in go1.18 should make this pretty simple to do: https://utcc.utoronto.ca/~cks/space/blog/programming/GoVersionOfYourSource