summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ui.sh2
-rw-r--r--src/ui/cli.sh16
2 files changed, 9 insertions, 9 deletions
diff --git a/src/ui.sh b/src/ui.sh
index ea4071e..603f714 100644
--- a/src/ui.sh
+++ b/src/ui.sh
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-ui_functions='info warn err dbg show_menu'
+ui_functions='dbg info warn err show_menu'
init_ui()
{
diff --git a/src/ui/cli.sh b/src/ui/cli.sh
index 16321b8..a396625 100644
--- a/src/ui/cli.sh
+++ b/src/ui/cli.sh
@@ -15,34 +15,34 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-cli_info()
+cli_dbg()
{
local fmt="${1}"
shift 1
- printf "${fmt}\n" "${@}"
+ printf "Debug: ${fmt}\n" "${@}"
}
-cli_warn()
+cli_info()
{
local fmt="${1}"
shift 1
- printf "Warning: ${fmt}\n" "${@}"
+ printf "${fmt}\n" "${@}"
}
-cli_err()
+cli_warn()
{
local fmt="${1}"
shift 1
- printf "Error: ${fmt}\n" "${@}"
+ printf "Warning: ${fmt}\n" "${@}" >&2
}
-cli_dbg()
+cli_err()
{
local fmt="${1}"
shift 1
- printf "Debug: ${fmt}\n" "${@}"
+ printf "Error: ${fmt}\n" "${@}" >&2
}