Crates.io | headers-remake |
lib.rs | headers-remake |
version | 0.1.2 |
source | src |
created_at | 2024-11-07 15:35:43.999527 |
updated_at | 2024-11-10 17:21:33.557475 |
description | It is a remake of the headers |
homepage | |
repository | https://github.com/ArshilHapani/Header-remake |
max_upload_size | |
id | 1439878 |
size | 30,873 |
Header Remake is a CLI tool inspired by headers by transmission11
.
This tool generates customizable, visually appealing comment headers for programming files. With options for symbols, length, and format, Header Remake makes it easy to add professional, readable headers to code files.
#
for Python, //
for JavaScript).git clone https://github.com/ArshilHapani/Header-remake
cd Header-remake
cargo build --release
curl
:
# download the binary (for Linux and macOS)
curl -L -o headers https://github.com/ArshilHapani/Header-remake/releases/download/0.1.2/headers-remake
# make the binary executable
chmod +x headers
# copy the binary to a directory in your PATH
sudo mv headers /usr/local/bin
Run the headers
command with any of the options below to create a custom header:
headers [OPTIONS] [TITLE]
Option | Description |
---|---|
-s , --symbol |
Set the symbol for the header (default: / ). |
-l , --length |
Set the total length of the header line (default: 50 ). |
-sl , --single-line |
Generate a single-line header instead of a boxed header. |
-h , --help |
Display help information. |
Basic Header:
headers "My Project"
Output:
//////////////////////////////////////////////////
/////////////////// MY PROJECT ///////////////////
//////////////////////////////////////////////////
Creates a 50-character header with the title "MY PROJECT" centered using /
.
Custom Symbol and Length:
headers -s "#" -l 60 "My Header"
Output:
############################################################
######################## MY HEADER ########################
############################################################
Creates a 60-character header with #
symbols surrounding "MY HEADER".
Single-Line Header:
headers -sl -s "//" "Single Line"
Output:
//////////////////////////////////// SINGLE LINE ////////////////////////////////////
Generates a single-line header formatted with //
symbols.
Latest release can be found here
Contributions are welcome! Please submit issues or create pull requests for improvements or new features.
This project is licensed under the MIT License.
Acknowledgment to the original headers project by transmission11
.