-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add ASCII art banner functionality and update error text styling (
#46)
- Loading branch information
Showing
2 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Copyright (c) 2023-2024 MDSANIMA DEV. All rights reserved. | ||
# Licensed under the MIT license. | ||
|
||
# This is a ASCII art banners with colors for `mdsanima-shell` script. | ||
# The all baners is generated from command-line tool called `figlet` by | ||
# typing `figlet -f future "mdsanima-shell"` and here is a colorized version | ||
# with some font and colors variants thats may be useful for other purposes. | ||
|
||
|
||
# Import default colors definition and help function for printing text in colors | ||
source "$PWD/mdsanima-colors" | ||
source "$PWD/mdsanima-prints" | ||
|
||
# Pringing ASCII art lines | ||
function __mds_shell_banner() { | ||
__mds_color_print -fg ROSE "┏┳┓╺┳┓┏━┓┏━┓┏┓╻╻┏┳┓┏━┓ ┏━┓╻ ╻┏━╸╻ ╻ " | ||
__mds_color_print -fg RED "┃┃┃ ┃┃┗━┓┣━┫┃┗┫┃┃┃┃┣━┫╺━╸┗━┓┣━┫┣╸ ┃ ┃ " | ||
__mds_color_print -fg ORANGE "╹ ╹╺┻┛┗━┛╹ ╹╹ ╹╹╹ ╹╹ ╹ ┗━┛╹ ╹┗━╸┗━╸┗━╸" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters