- core/framework/: flag.sh, hook.sh, help.sh, command.sh, mixin.sh - core/app/: wgctl-specific context.sh, json.sh - core/framework/mixins/: json_output, no_color mixins - core/core.sh: sources framework/core.sh + app/core.sh - PYTHONPATH exported in app/core.sh for lib/ module resolution - command::_load_mixins: uses _FRAMEWORK_DIR for mixin path
12 lines
No EOL
338 B
Bash
12 lines
No EOL
338 B
Bash
#!/usr/bin/env bash
|
|
|
|
# ============================================
|
|
# Core Bootstrap
|
|
# ============================================
|
|
|
|
WGCTL_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
FRAMEWORK_DIR="$WGCTL_DIR/core/framework"
|
|
APP_CORE_DIR="$WGCTL_DIR/core/app"
|
|
|
|
source "${FRAMEWORK_DIR}/core.sh"
|
|
source "${APP_CORE_DIR}/core.sh" |