diff --git a/lgsm/modules/command_dev_ui.sh b/lgsm/modules/command_dev_ui.sh new file mode 100644 index 000000000..641e358eb --- /dev/null +++ b/lgsm/modules/command_dev_ui.sh @@ -0,0 +1,38 @@ +#!/bin/bash +# LinuxGSM command_dev_ui.sh module +# Author: Daniel Gibbs +# Contributors: https://linuxgsm.com/contrib +# Website: https://linuxgsm.com +# Description: Dev only: Assist with UI development. + +commandname="DEV-DEBUG" +commandaction="Developer ui" +moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" +fn_firstcommand_reset + +# Load ANSI colors +fn_ansi_loader + +# Print supported colors +echo -e "${default}default" +echo -e "${black}black${default}" +echo -e "${red}red${default}" +echo -e "${lightred}lightred${default}" +echo -e "${green}green${default}" +echo -e "${lightgreen}lightgreen${default}" +echo -e "${yellow}yellow${default}" +echo -e "${lightyellow}lightyellow${default}" +echo -e "${blue}blue${default}" +echo -e "${lightblue}lightblue${default}" +echo -e "${magenta}magenta${default}" +echo -e "${lightmagenta}lightmagenta${default}" +echo -e "${cyan}cyan${default}" +echo -e "${lightcyan}lightcyan${default}" +echo -e "${darkgrey}darkgrey${default}" +echo -e "${lightgrey}lightgrey${default}" +echo -e "${white}white${default}" +echo -e "${bold}bold${default}" +echo -e "${dim}dim${default}" +echo -e "${italic}italic${default}" +echo -e "${underline}underline${default}" +echo -e "${reverse}reverse${default}" diff --git a/lgsm/modules/core_getopt.sh b/lgsm/modules/core_getopt.sh index e20718ee8..ee9e5794c 100644 --- a/lgsm/modules/core_getopt.sh +++ b/lgsm/modules/core_getopt.sh @@ -56,6 +56,7 @@ cmd_dev_detect_deps=("dd;detect-deps" "command_dev_detect_deps.sh" "Detect requi cmd_dev_detect_glibc=("dg;detect-glibc" "command_dev_detect_glibc.sh" "Detect required glibc.") cmd_dev_detect_ldd=("dl;detect-ldd" "command_dev_detect_ldd.sh" "Detect required dynamic dependencies.") cmd_dev_query_raw=("qr;query-raw" "command_dev_query_raw.sh" "The raw output of gamedig and gsquery.") +cmd_dev_ui=("ui;ui" "command_dev_ui.sh" "Assist with UI development.") cmd_dev_clear_modules=("cm;clear-modules" "command_dev_clear_modules.sh" "Delete the contents of the modules dir.") ### Set specific opt here. diff --git a/lgsm/modules/core_modules.sh b/lgsm/modules/core_modules.sh index 75a98ddd8..046a88f28 100644 --- a/lgsm/modules/core_modules.sh +++ b/lgsm/modules/core_modules.sh @@ -329,6 +329,11 @@ command_dev_detect_ldd.sh() { fn_fetch_module } +command_dev_ui.sh() { + modulefile="${FUNCNAME[0]}" + fn_fetch_module +} + command_dev_query_raw.sh() { modulefile="${FUNCNAME[0]}" fn_fetch_module