bbshark

Crates.iobbshark
lib.rsbbshark
version0.1.2
created_at2025-08-10 12:32:18.924562+00
updated_at2025-08-10 21:11:28.118279+00
descriptionCommand-line interface to prints a very popular kid's song.
homepage
repositoryhttps://github.com/dunlopWill/bbshark
max_upload_size
id1788874
size15,525
Will Dunlop (dunlopWill)

documentation

README

bbshark

Introduction

bbshark is a blazingly fast command-line interface (CLI) written in Rust for anyone to print a subset of lyrics from a very popular kid's song.

Getting started

Installation

Run the following:

cargo install bbshark

Usage

Default

Simply run bbshark for default:

.cargo/bin/bbshark
# Baby shark... doo, doo, doo, doo, doo, doo.
# Baby shark!

Help

Add a help flag (-h or --help) to get CLI instructions:

.cargo/bin/bbshark -h

# ...
# USAGE:
    # bbshark [OPTIONS]
# 
# FLAGS:
    # -h, --help       Prints help information
    # -V, --version    Prints version information
# 
# OPTIONS:
    # -d, --doos <DOOS>    Number of 'doo's (between 1 and 127) [default: 6]
# ...

Doos

Vary the number of "doo"s by specifying a number between 1 and 127:

.cargo/bin/bbshark -d 12
# Baby shark... doo, doo, doo, doo, doo, doo, doo, doo, doo, doo, doo, doo.
# Baby shark!

Bonus

Consider piping stdout into cowsay and/or lolcat:

.cargo/bin/bbshark | cowsay -f turtle | lolcat
 # ________________________________________
# / Baby shark... doo, doo, doo, doo, doo, \
# \ doo. Baby shark!                       /
 # ----------------------------------------
    # \                                  ___-------___
     # \                             _-~~             ~~-_
      # \                         _-~                    /~-_
             # /^\__/^\         /~  \                   /    \
           # /|  O|| O|        /      \_______________/        \
          # | |___||__|      /       /                \          \
          # |          \    /      /                    \          \
          # |   (_______) /______/                        \_________ \
          # |         / /         \                      /            \
           # \         \^\\         \                  /               \     /
             # \         ||           \______________/      _-_       //\__//
               # \       ||------_-~~-_ ------------- \ --/~   ~\    || __/
                 # ~-----||====/~     |==================|       |/~~~~~
                  # (_(__/  ./     /                    \_\      \.
                         # (_(___/                         \_____)_)
# 
# 

Build steps

Clone the repository:

git clone https://github.com/dunlopWill/bbshark.git

Ensure you're in the correct directory:

cd bbshark

Run using cargo:

cargo run bbshark

Contribute

Is bbshark missing a critical feature? Make a pull request.

Commit count: 0

cargo fmt