feat: reshuffle files
This commit is contained in:
13
dotfiles/dao.sh/local/share/dao/config/dao.conf
Normal file
13
dotfiles/dao.sh/local/share/dao/config/dao.conf
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
# -- dao.sh
|
||||
DAO_USER="jamie"
|
||||
DAO_USER_HOME="/home/${DAO_USER}"
|
||||
DAO_INSTALL_DIR="${DAO_USER_HOME}/dao"
|
||||
DAO_SCRIPTS_DIR="${DAO_INSTALL_DIR}/scripts"
|
||||
DAO_STORAGE_DIR="${DAO_INSTALL_DIR}/storage"
|
||||
|
||||
# --- jade.sh
|
||||
JADE_REMOTE_HOST="root@hephaestus"
|
||||
JADE_REMOTE_PATH="/home/oc/docker_config/compose.yml"
|
||||
JADE_LOCAL_PATH="/tmp/${JADE_REMOTE_PATH##*/}"
|
||||
JADE_EDITOR="codium"
|
||||
2048
dotfiles/dao.sh/local/share/dao/dict/pwgen.list
Normal file
2048
dotfiles/dao.sh/local/share/dao/dict/pwgen.list
Normal file
File diff suppressed because it is too large
Load Diff
37
dotfiles/dao.sh/local/share/dao/libs/libs_dao.sh
Normal file
37
dotfiles/dao.sh/local/share/dao/libs/libs_dao.sh
Normal file
@@ -0,0 +1,37 @@
|
||||
#!/usr/bin/env bash
|
||||
# ---
|
||||
# @file_name: libs_cradle.sh
|
||||
# @version: 1.0.0
|
||||
# @description: lib files
|
||||
# @author: Jamie Albert (empty_produce)
|
||||
# @author_contact: <mailto:empty.produce@flatmail.me>
|
||||
# @license: GNU Affero General Public License v3.0 (Included in LICENSE)
|
||||
# Copyright (C) 2025, Jamie Albert
|
||||
# ---
|
||||
set -euo pipefail
|
||||
|
||||
# Color definitions using 256-color codes
|
||||
readonly RED=$'\033[0;38;5;167m'
|
||||
readonly GREEN=$'\033[0;38;5;108m'
|
||||
readonly YELLOW=$'\033[1;38;5;214m'
|
||||
readonly NC=$'\033[0m'
|
||||
|
||||
dao::error() {
|
||||
declare error_msg exit_code="${1}"
|
||||
shift
|
||||
printf -v error_msg 'error[%d]: %s\n' "${exit_code}" "$*"
|
||||
echo -ne "${RED}[e]${NC}: ${error_msg}" >&2
|
||||
exit "${exit_code}"
|
||||
}
|
||||
|
||||
dao::info() {
|
||||
declare info_msg
|
||||
printf -v info_msg '%s\n' "$*"
|
||||
echo -ne "${GREEN}[i]${NC}: ${info_msg}"
|
||||
}
|
||||
|
||||
dao::warn() {
|
||||
declare warn_msg
|
||||
printf -v warn_msg '%s\n' "$*"
|
||||
echo -ne "${YELLOW}[w]${NC}: ${warn_msg}"
|
||||
}
|
||||
Reference in New Issue
Block a user