init commit,

This commit is contained in:
louiscklaw
2025-05-28 09:55:51 +08:00
commit efe70ceb69
8042 changed files with 951668 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
#!/usr/bin/env bash
env_file="${1:-.env}"
if [[ -f "$env_file" ]]; then
echo "enum DotEnv {"
while IFS='=' read -r key value || [[ -n "$key" ]]; do
if [[ -n "$key" && ! "$key" =~ ^# ]]; then
if [[ -z "$value" ]]; then
value=$(eval "echo \$$key")
fi
echo " static let $key = \"$value\""
fi
done < <(grep -v '^#' "$env_file")
echo "}"
fi