BSFL
0.1.0
Bash Shell Function Library
|
Functions | |
__raw_status (status, color) | |
Internal use. More... | |
display_status (status) | |
Displays the specified message status on the right side of the screen. More... | |
msg (message, color) | |
Similar to the 'echo' function but with extra features. More... | |
msg_alert (message) | |
Displays a message with the 'alert' status. More... | |
msg_critical (message) | |
Displays a message with the 'critical' status. More... | |
msg_debug (message) | |
Displays a message with the 'debug' status. More... | |
msg_emergency (message) | |
Displays a message with the 'emergency' status. More... | |
msg_error (message) | |
Displays a message with the 'error' status. More... | |
msg_failed (message) | |
Displays a message with the 'failed' status. More... | |
msg_info (message) | |
Displays a message with the 'info' status. More... | |
msg_not_ok (message) | |
Displays a message with the 'not ok' status. More... | |
msg_notice (message) | |
Displays a message with the 'notice' status. More... | |
msg_ok (message) | |
Displays a message with the 'ok' status. More... | |
msg_passed (message) | |
Displays a message with the 'passed' status. More... | |
msg_status (message, status) | |
Displays a message with its status at the end of the line. More... | |
msg_success (message) | |
Displays a message with the 'success' status. More... | |
msg_warning (message) | |
Displays a message with the 'warning' status. More... | |
__raw_status | ( | status | , |
color | |||
) |
Internal use.
This function just positions the cursor one row up and to the right. It then prints the message to display with the specified color. It is used for displaying colored status messages on the right side of the screen.
status | Message status. |
color | Message color. |
display_status | ( | status | ) |
Displays the specified message status on the right side of the screen.
status | Message status to display. |
msg | ( | message | , |
color | |||
) |
Similar to the 'echo' function but with extra features.
This function basically replaces the 'echo' function in bash scripts. The added functionalities over 'echo' are logging and using colors.
message | Message to display. |
color | Text color. |
msg_alert | ( | message | ) |
Displays a message with the 'alert' status.
message | Message to display. |
msg_critical | ( | message | ) |
Displays a message with the 'critical' status.
message | Message to display. |
msg_debug | ( | message | ) |
Displays a message with the 'debug' status.
message | Message to display. |
msg_emergency | ( | message | ) |
Displays a message with the 'emergency' status.
message | Message to display. |
msg_error | ( | message | ) |
Displays a message with the 'error' status.
message | Message to display. |
msg_failed | ( | message | ) |
Displays a message with the 'failed' status.
message | Message to display. |
msg_info | ( | message | ) |
Displays a message with the 'info' status.
message | Message to display. |
msg_not_ok | ( | message | ) |
Displays a message with the 'not ok' status.
message | Message to display. |
msg_notice | ( | message | ) |
Displays a message with the 'notice' status.
message | Message to display. |
msg_ok | ( | message | ) |
Displays a message with the 'ok' status.
message | Message to display. |
msg_passed | ( | message | ) |
Displays a message with the 'passed' status.
message | Message to display. |
msg_status | ( | message | , |
status | |||
) |
Displays a message with its status at the end of the line.
message | Message to display. |
status | Message status. |
msg_success | ( | message | ) |
Displays a message with the 'success' status.
message | Message to display. |
msg_warning | ( | message | ) |
Displays a message with the 'warning' status.
message | Message to display. |