Fork me on GitHub
#babashka
<
2022-04-24
>
borkdude20:04:55

neil v0.0.25 now has a license subcommand:

$ neil license list
:key agpl-3.0 :name GNU Affero General Public License v3.0
:key apache-2.0 :name Apache License 2.0
:key bsd-2-clause :name BSD 2-Clause "Simplified" License
:key bsd-3-clause :name BSD 3-Clause "New" or "Revised" License
:key mit :name MIT License
...

$ neil license add mit
$ less LICENSE
MIT License

Copyright (c) [year] [fullname]
Thanks @highpressurecarsalesm

🎉 4
borkdude20:04:40

@highpressurecarsalesm Do you think it makes sense to make the output readable? E.g. this has an undesirable effect:

./neil license list | fzf | xargs bb -e "*command-line-args*"
(":key" "bsd-3-clause" ":name" "BSD" "3-Clause" "New" "or" "Revised" "License")

borkdude20:04:55

The idea is that the output can be piped back into neil license add

borkdude20:04:39

we could also do it like this:

:key mit # Mit Foobar

borkdude20:04:09

(not sure if that works, quoting is probably a better idea, but needs to be tested with different shells probably)

borkdude20:04:08

I decided to just pr-str the name for now

Bob B20:04:33

I didn't maintain the keyword names, so piping back in is sort of non-trivial, but with pr-str that can be remedied easily

Bob B21:04:51

I can either rename :key to :license in the output, or take (or :key :license) as input to license add

borkdude21:04:01

ah renaming to :license would make sense

borkdude21:04:31

I'll take care of that

Bob B21:04:01

oh whoops - I'll close my PR, then 🙂

borkdude21:04:24

You also update the docs

borkdude21:04:31

I can still merge it

Bob B21:04:50

I re-opened it for the docs (and the "emacs integration" section of the readme into the template) - would you prefer that I merge main into it so it gets the formatting updates in neil.clj?

borkdude21:04:32

already merged

Bob B21:04:34

sorry about the confusion - I'm just trying to keep up with you 🙂

borkdude21:04:11

haha no problem

borkdude21:04:18

thanks a lot for all your work!

borkdude21:04:27

and for your support

borkdude21:04:01

Adding neil.el to melpa now: https://github.com/melpa/melpa/pull/8005 /cc @ag

👍 1
ag21:04:35

already? oh... I guess, let me go through the linter checks