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

Hesa add allowed #359

Merged
merged 9 commits into from
Feb 26, 2024
Merged

Hesa add allowed #359

merged 9 commits into from
Feb 26, 2024

Conversation

hesa
Copy link
Contributor

@hesa hesa commented Feb 25, 2024

New option: --licenses-allowed-file, -laf

With this option you can pass a list of licenses to (only) allow as outbound licenses.

This option cannot be used together with --licenses-denied-file, -ldf. Doing so, results in an error.

Examples:

Without any licenses to allow/deny:

$ flict -of text  outbound-candidate  "MIT OR BSD-3-Clause AND (X11)" 
BSD-3-Clause, MIT, X11

Denying MIT using example-data/denied-licenses.json:

$ cat example-data/denied-licenses.json
{
    "licenses_denied": [ "MIT" ]
}
$ flict -of text -ldf example-data/denied-licenses.json  outbound-candidate  "MIT OR BSD-3-Clause AND (X11)" 
BSD-3-Clause, X11

Allowing MIT using the file example-data/allowed-licenses.json:

$ cat example-data/allowed-licenses.json
{
    "licenses_allowed": [ "MIT" ]
}
$ flict -of text -laf example-data/allowed-licenses.json  outbound-candidate  "MIT OR BSD-3-Clause AND (X11)" 
MIT

@hesa hesa merged commit dae1e99 into vinland-technology:main Feb 26, 2024
5 checks passed
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 this pull request may close these issues.

2 participants