Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raw license static url #1176

Open
Dlurak opened this issue Dec 31, 2023 · 1 comment
Open

Raw license static url #1176

Dlurak opened this issue Dec 31, 2023 · 1 comment

Comments

@Dlurak
Copy link

Dlurak commented Dec 31, 2023

Currently users have to visit the site, choose the license, copy it contents and put it into a new file.

I think it would be beneficial if only the content of a license would be available under a standalone uri.
It would allow for things like this:

$ curl https://choosealicense.com/licenses/agpl-3.0.txt > LICENSE

Happy new year 2024!
What do you think?

@mlinksva
Copy link
Contributor

Happy new year! It's a reasonable idea but would require some restructuring of this repo and additional URLs to support forever. I don't oppose it but probably won't personally get to it. Less convenient to type, but the following should (not in a place to test it at the moment) get you the same result (the licenses in this repo are the ones github.com knows about, this repo is ultimately the source):

$ curl https://api.github.com/licenses/agpl-3.0 |  jq --raw-output '."body"' > LICENSE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants