crholm opened a new pull request, #163: URL: https://github.com/apache/skywalking-eyes/pull/163
The cli semantic for flags is somewhat cumbersome, unexpected behavior and does not lend it self well for github actions when we want to automatically generate a `LICENSE` file. `license-eye dependency resolve` has the `--summary` flag which takes a path to a go template file, and emits a LICENCE file in the template dir and only if specified. The `--summary` flag thus has three functions, providing a template for rendering, specifying path to output and toggling functionality for outputting a LICENSE file or not. My suggestion, to keep backwards compatibility, is to add a new flag, `--license`, which specifies where to write the license file and adding a default template. `--summary` will retains its behavior for projects depending on it, while allowing a default template and a specific path to be used. The PR does the following * adds the flag --license, to the command `dependency resolve`, which takes a path to where the LICENSE content shall be written * adds a default template for LICENSE which is used if `--license` is specified but not `--summary` * adds the `inputs.flags` to github action `dependency/action.yml` in order to be able to specify flags to generate a LICENSE file through github actions * updating README with information of the new flag and github action -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
