#cli #header #notice #license

app add-header

A cli to add headers to files

12 unstable releases (3 breaking)

0.4.5 Oct 21, 2023
0.4.4 Oct 21, 2023
0.3.1 Oct 7, 2023
0.2.1 Oct 5, 2023
0.1.2 Oct 3, 2023

#423 in Command line utilities

Download history 2/week @ 2023-11-12 50/week @ 2023-11-19 63/week @ 2023-11-26 12/week @ 2023-12-10 26/week @ 2023-12-24 12/week @ 2024-01-07 74/week @ 2024-01-28 4/week @ 2024-02-04 67/week @ 2024-02-11 411/week @ 2024-02-18

556 downloads per month

MPL-2.0 license

26KB
82 lines

add-header

License Crates.io Minimum Supported Rust Version CI

A cli to add headers to files.

Install and Usage

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

Purpose

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/.

Dependencies

~4.5–6.5MB
~112K SLoC