Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thalesfsp/printbanner
Prints the given text to the output/console with inverted colors options and vertical space control
https://github.com/thalesfsp/printbanner
Last synced: 8 days ago
JSON representation
Prints the given text to the output/console with inverted colors options and vertical space control
- Host: GitHub
- URL: https://github.com/thalesfsp/printbanner
- Owner: thalesfsp
- License: other
- Created: 2015-06-30T19:54:04.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-28T19:45:52.000Z (about 9 years ago)
- Last Synced: 2023-03-30T11:03:42.851Z (over 1 year ago)
- Language: Shell
- Size: 199 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# printBanner
Since: 06/2015
Author: Thales Pinheiro
[![build status](http://ci.audaci.us:8072/projects/5/status.png?ref=master)](http://ci.audaci.us:8072/projects/5?ref=master)## Abstraction
Prints the given text to the output/console with inverted colors options and vertical space control
![](https://s3-us-west-2.amazonaws.com/tfsp-printbanner/printBanner-example.png)
## Basic usage
`printBanner [TEXT]` or `printBanner [OPTION] [TEXT]`*Note: The [Text] should be single quoted*
## How to use?
You can import **printBanner** (`source printBanner.sh`) into any script or use directly in the terminal, in this case you will need to source the script into your `.bash_profile` or `.bashrc` (it depends on the OS).
## Available Options
- `-t`, `--top`: add top vertical space
- `-b`, `--bottom`: add bottom vertical space
- `-tb`, `--top-bottom`: add top and bottom vertical space
- `-nvs`|`--no-vertical-space`: print the text without any vertical space
- `-h`, `--help`: display the help text## Tests
Run `sh test.sh` or `./test.sh`.