~acdw/licenser

drop a license in your project
Update README
Update README
Enable licenser_source to be set by env

clone

read-only
https://git.sr.ht/~acdw/licenser
read/write
git@git.sr.ht:~acdw/licenser

You can also use your local clone with git send-email.

licenser: plop a license in there

Are you tired of copying and pasting licenses into your new projects? Do you always forget what the dang github api thing is? Or I don't know, have some other reason why doing licenses is hard?

Well now you don't have to worry! Just run licenser in your new repo and BLAMMO! Done.

Usage

literally taken from licenser -h

licenser: plop a license in your project

usage:  licenser [-h|-m|-M]
    licenser [-f] [-q] [-y YEAR] [-a AUTHOR] [-e EMAIL] 
          [-l LANG] [-o FILE] [LICENSE]
flags:
    -h  show this help and exit
    -m  list available licenses and exit
    -M  list licenses, disregarding cached manifest
    -f  overwrite existing license
    -q  quiet: don't log anything
options:
    -y YEAR     set copyright date(s) to YEAR.
            default: $(date +%Y).
            this option accepts arbitrary input.
    -a AUTHOR   set copyright holder(s) to AUTHOR.
            default:
                - git config --get user.name
                - getent password $USER
                - $USER
    -e EMAIL    set AUTHOR's email address to EMAIL.
            default:
                - git config --get user.email
                - [blank]
    -l LANG     set license language to LANG.
            default: 'en' (subject to change)
    -o FILE     set output file to FILE.
            default: LICENSE in $PWD
parameters:
    LICENSE     which license to use.
            default: $LICENSER_LICENSE, which
            defaults to MIT.

License source

As of v0.2, licenser gets its licenses from another repo, to streamline additions to available licenses. If you have spotty internet connection or want to use your own license source, you can change the environment variable $LICENSER_SOURCE.

For v0.3, I want to add a configuration file to take care of these kinds of configurations.

Contributing

Send me a request for another license or a pull-thingy through the mailing list.

Or, look at the roadmap.

License

MIT, baby.

Author

Case Duckworth acdw@acdw.net wrote this. He did not look around for existing solutions.