1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-12 16:20:14 +00:00

refactor: simplify ui and log defaults

Remove support for obscure env var overrides in favor of sensible defaults.
This commit is contained in:
Tw93
2026-01-03 13:29:07 +08:00
parent 5955bd93dc
commit c165230159
3 changed files with 3 additions and 5 deletions

View File

@@ -321,7 +321,7 @@ stop_inline_spinner() {
with_spinner() {
local msg="$1"
shift || true
local timeout="${MOLE_CMD_TIMEOUT:-180}"
local timeout=180
start_inline_spinner "$msg"
local exit_code=0
if [[ -n "${MOLE_TIMEOUT_BIN:-}" ]]; then
@@ -333,7 +333,7 @@ with_spinner() {
# Get spinner characters
mo_spinner_chars() {
local chars="${MO_SPINNER_CHARS:-|/-\\}"
local chars="|/-\\"
[[ -z "$chars" ]] && chars="|/-\\"
printf "%s" "$chars"
}