Skip to content

BogdanPri/hfmt-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

31 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

hfmt-cli

GitHub top language

A simple CLI utility for generating formatted text headers with borders and boxes.

πŸ“¦ Requirements

  • Python >= 3.9

πŸ›  Usage

Run with a positional argument:

$ hfmt "project title"
################################## project title ###################################

Run with flags:

$ hfmt --head "build complete" --style multi --char "=" --width 60 --upper --align left
============================================================
= BUILD COMPLETE 
============================================================
$ hfmt --border-only --width 50
##################################################

Run with box mode:

$ hfmt --title --width auto --box double "welcome back"
╔══════════════╗
β•‘ Welcome Back β•‘
β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•

βš™οΈ Options

hfmt-cli supports the following value flags:

Flag Description Default
head (positional) Header text β€”
-H, --head Header text (alternative flag form) β€”
-s, --style Border style (single, multi) single
-c, --char Character to use for the border #
-w, --width Width of the rows 84 or auto
-a, --align Header justification center or left
-b, --box Surround header by a box (overrides other flags) none

hfmt-cli supports the following value toggles:

Toggle Description
-U, --upper Converts header to "UPPER_CASE"
-L, --lower Converts header to "lower_case"
-T, --title Converts header to "Title_Case"
-S, --swapcase Converts header to "sWAP_cASE"
--border-only Returns only a border of characters with no header

πŸš€ Installation

Clone the git repo:

git clone https://github.com/BogdanPri/hfmt-cli.git

Install via pip:

cd hfmt-cli
pip install -e .

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages