A cross-platform Rust library for resolving XDG and platform-specific directories with proper fallbacks.
1#!/usr/bin/env sh
2#MISE description="run all CI checks"
3
4use_color() {
5 [ "${FORCE_COLOR:-}" = "1" ] && return 0
6 [ -t 1 ] || return 1
7 [ "${TERM:-}" = "dumb" ] && return 1
8 [ -n "${NO_COLOR:-}" ] && return 1
9 return 0
10}
11
12echo_step() {
13 if use_color; then
14 printf "\n\e[38;2;72;192;189m==>\e[0m \e[38;2;255;255;255;1m%s\e[0m\n\n" "$1"
15 else
16 printf "\n==> %s\n\n" "$1"
17 fi
18}
19
20echo_step "✨ Lint" && bin/lint/_default
21echo_step "🧪 Test" && bin/test/coverage
22echo_step "👷♂️ Build" && bin/build