Closed helio-frota closed 7 years ago
Another example, currently this makes no sense license-reporter --silent
update:
Commands and arguments validation delegated to yargs.
Performance++ avoiding call some functions more than once.
Better names: projectMetaData instead XmlObject, licenseMetaData instead XmlEntry and so on...
No more command-options spread throughout the code.
$ license-reporter console
$ license-reporter save --xml foo.xml
$ license-reporter save --json foo.json
$ license-reporter save --yaml foo.yaml
$ license-reporter merge --mpn FooBar --mlx "licenses/part1.xml,licenses/part2.xml" --mo out.xml
orlicense-reporter merge --merge-product-name FooBar --merge-license-xmls "licenses/part1.xml,licenses/part2.xml" --merge-output out.xml
$ license-reporter report
Add more unit tests.
Remove old .js files.
Add warning messages back again.
Cleanup unused code.
Update the README.md with the new commands.
We need to keep (MIT OR APACHE-2.0)
instead MIT
and APACHE-2.0
(in the link label on Local licenses
column) because we currently can not identify what's inside the license file.
In this case I decided to keep the label "JSONSTREAM_ (MIT OR APACHE-2.0) .TXT" and both links point to the Apache-2.0 licensed file since the MIT license file does not exist (in this specific case). Instead of adding the "Local File Not Found" message,
If any changes are required please open a issue.
I was reading yargs documentation and it seems to be possible to have something like:
If is possible to do it then maybe we can delegate some validation and have more consistence with command and project code, by having something like: