#comments #banner #create #quickly #style #text #arguments

app figlet-comment

Simple tool to quickly create banner to use as comments

6 releases (3 breaking)

0.4.0 Sep 18, 2024
0.3.0 Sep 5, 2024
0.2.2 Aug 22, 2024
0.1.0 Aug 14, 2024

#260 in Text processing

Download history 264/week @ 2024-08-16 128/week @ 2024-08-23 103/week @ 2024-08-30 47/week @ 2024-09-06 124/week @ 2024-09-13 29/week @ 2024-09-20 10/week @ 2024-09-27 2/week @ 2024-10-04 2/week @ 2024-10-11

388 downloads per month

MIT license

8KB
52 lines

crates.io

figlet-comment

Simple tool to quickly create banner to use as comments.

Installation

cargo install figlet-comment

Usage

After installation the command can be used as follow:

Simple tool to quickly create banner to use as comments.

Usage: figlet-comment [OPTIONS] <TEXT>...

Arguments:
  <TEXT>...

Options:
      --style <STYLE>  [default: //] [possible values: //, %, #]
      --no-stdout      Disable printing to stdout
      --no-clipboard   Disable adding to clipboard
  -h, --help           Print help
  -V, --version        Print version

In case no comment style is specified, it default to --style //. It is possible to use c++, rust, latex, python, ruby for <STYLE>. By default, the resulting text is display on the terminal and copied to the clipboard.

Examples

figlet-comment Some text!
figlet-comment --style rust Some text!
figlet-comment --style c++ Some text!

Which result in:

//  ____                         _            _   _ 
// / ___|  ___  _ __ ___   ___  | |_ _____  _| |_| |
// \___ \ / _ \| '_ ` _ \ / _ \ | __/ _ \ \/ / __| |
//  ___) | (_) | | | | | |  __/ | ||  __/>  <| |_|_|
// |____/ \___/|_| |_| |_|\___|  \__\___/_/\_\\__(_)
//                                                  
figlet-comment --style python Some text!
figlet-comment --style ruby Some text!

Which result in:

#  ____                         _            _   _ 
# / ___|  ___  _ __ ___   ___  | |_ _____  __ |_| |
# \___ \ / _ \| '_ ` _ \ / _ \ | __/ _ \ \/ / __| |
#  ___) | (_) | | | | | |  __/ | ||  __/>  <| |_|_|
# |____/ \___/|_| |_| |_|\___|  \__\___/_/\_\\__(_)
#                                                  
figlet-comment --style latex Some text!

Which result in:

#  ____                         _            _   _ 
# / ___|  ___  _ __ ___   ___  | |_ _____  __ |_| |
# \___ \ / _ \| '_ ` _ \ / _ \ | __/ _ \ \/ / __| |
#  ___) | (_) | | | | | |  __/ | ||  __/>  <| |_|_|
# |____/ \___/|_| |_| |_|\___|  \__\___/_/\_\\__(_)
#                                                  

Dependencies

~1–12MB
~154K SLoC