Browse Source

add new dev command ui

feature/dst-changes
Daniel Gibbs 6 months ago
parent
commit
741d405104
No known key found for this signature in database GPG Key ID: 2076B128385E8C55
  1. 38
      lgsm/modules/command_dev_ui.sh
  2. 1
      lgsm/modules/core_getopt.sh
  3. 5
      lgsm/modules/core_modules.sh

38
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}"

1
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.

5
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

Loading…
Cancel
Save