[Adapted from recent Gitter posts]
Q: Seeing how bash-it appears to have a fail silently mantra to prevent unwanted terminal output, is there a means for bash-it to communicate issues/messages to the user?
At first I was thinking something simple like bash-it logs and give components a means for creating log messages to communicate error conditions (ie. functions like log_error, log_warning, etc)
But then I thought, in addition to that, maybe something like bash-it messages which would contain messages that components generated specifically for the user to see (where as logs could contain many types of messaging, auto-generated statuses, etc) ... (ie. user_message function)
THEN we could also design a prompt segment for letting the user know when messages are waiting to be read.
Also, feels like we could give ourselves permission to message the user when initiating a login session. Even if it was just to say something like "You have bash-it messages waiting to be read. Use 'bash-it messages' to read them."
[Adapted from recent Gitter posts]
Q: Seeing how bash-it appears to have a
fail silentlymantra to prevent unwanted terminal output, is there a means for bash-it to communicate issues/messages to the user?At first I was thinking something simple like
bash-it logsand give components a means for creating log messages to communicate error conditions (ie. functions likelog_error,log_warning, etc)But then I thought, in addition to that, maybe something like
bash-it messageswhich would contain messages that components generated specifically for the user to see (where as logs could contain many types of messaging, auto-generated statuses, etc) ... (ie.user_messagefunction)THEN we could also design a prompt segment for letting the user know when messages are waiting to be read.
Also, feels like we could give ourselves permission to message the user when initiating a
loginsession. Even if it was just to say something like"You have bash-it messages waiting to be read. Use 'bash-it messages' to read them."