Crates.io | add-notice |
lib.rs | add-notice |
version | |
source | src |
created_at | 2024-03-15 22:05:54.952344 |
updated_at | 2024-12-01 02:05:45.146387 |
description | A cli tool to add notices to files |
homepage | |
repository | https://github.com/ameknite/add-notice |
max_upload_size | |
id | 1175207 |
Cargo.toml error: | TOML parse error at line 19, column 1 | 19 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
A cli tool to add headers notices to files
Usage: add-notice [OPTIONS]
Options:
-n, --notice <NOTICE>
path to the notice file [default: ./NOTICE]
--dir <DIR>
directory to apply the notice [default: .]
-e, --extensions <EXTENSIONS>
select files by extension, e.g. rs,js,kt [default: rs]
-c, --comment-style <COMMENT_STYLE>
comment style [default: //]
-r, --remove
remove notice in files
--replace-with-string <REPLACE_WITH_STRING>
replace notice with string
--replace-with-file <REPLACE_WITH_FILE>
replace notice with file content
-h, --help
Print help
-V, --version
Print version
Compile the crate yourself with:
cargo install add-notice
Install a binary version:
cargo binstall add-notice
Makes the process of adding header notices to files easier.
Like those requested by licenses such as MPL2.0:
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at https://mozilla.org/MPL/2.0/.