Crates.io | add-header |
lib.rs | add-header |
version | 0.6.2 |
source | src |
created_at | 2023-10-03 02:31:25.491933 |
updated_at | 2024-03-15 00:38:13.210087 |
description | A cli to add headers to files |
homepage | |
repository | https://github.com/ameknite/add-header |
max_upload_size | |
id | 990686 |
size | 100,790 |
A cli to add headers to files.
You can install add-header with: cargo install add-header
.
Run it in your project directory with: add-header
.
A cli to add headers to files
Usage: add-header [OPTIONS]
Options:
--header <HEADER> path to the header file [default: ./NOTICE]
--dir <DIR> directory to apply the header [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 header, run first if you need to update your header
-h, --help Print help
-V, --version Print version
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/.