Dump license data from scancode licenses to the directory ``path`` passed in from command line. Dumps data in JSON, YAML and HTML formats and also dumps the .LICENSE file with the license text and the data as YAML frontmatter.
(path)
| 193 | |
| 194 | |
| 195 | def scancode_license_data(path): |
| 196 | """ |
| 197 | Dump license data from scancode licenses to the directory ``path`` passed |
| 198 | in from command line. |
| 199 | |
| 200 | Dumps data in JSON, YAML and HTML formats and also dumps the .LICENSE file |
| 201 | with the license text and the data as YAML frontmatter. |
| 202 | """ |
| 203 | click.secho(f'Dumping license data to: {path}', err=True) |
| 204 | count = generate(build_location=path) |
| 205 | click.secho(f'Done dumping #{count} licenses.', err=True) |
| 206 | |
| 207 | |
| 208 | @click.command(name='scancode-license-data') |
no test coverage detected