hello homebrew
- Usage
nwa add [flags] path...
- Example
nwa add -l apache -c "RHINE LAB.LLC." -y 2077 "src/**/*.go" "pkg/pool/**"
The command in the example above adds a license header to all Go files under the folder with the relative path src
and to all files under the folder with the relative path pkg/pool
:
- License type:
Apache 2.0
- Copyright holder:
RHINE LAB.LLC.
- Copyright year:
2077
NWA will generate a corresponding license header based on the file type in the specified paths. For example, .py
files will use #
for comments, and .go
files will use //
.
If your file type is not supported by NWA, you can:
- Specify a custom template file using the
--tmpl
(-t
) or--rawtmpl
(-r
) flag. Refer to Supported Licence Templates - Submit an issue or PR to NWA
NWA will also output logs to inform you if any files already have a license header or if any files are not allowed to be edited (such as code files generated by tools).