- Implemented `database.go` for MySQL and PostgreSQL provisioning, including password generation and secret management. - Created `k8s.go` for Kubernetes command execution, resource checks, and secret/configmap management. - Developed `main.go` to handle CLI commands for applying configurations, checking status, logging, and managing applications. - Added `storage.go` for binary deployment to the gateway pod and symlink configuration for application entrypoints. - Enhanced CLI with commands for application management, including listing, deleting, and uploading binaries.
16 lines
555 B
Bash
Executable File
16 lines
555 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# ==============================================================================
|
|
# Zero-Scale Platform Management CLI Wrapper
|
|
# Forwards to native Go implementation in cmd/zero-scale-ctl
|
|
# ==============================================================================
|
|
set -eo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
ROOT_DIR="$(cd "${SCRIPT_DIR}/.." && pwd)"
|
|
|
|
if [ -f "${ROOT_DIR}/zero-scale-ctl" ]; then
|
|
exec "${ROOT_DIR}/zero-scale-ctl" "$@"
|
|
else
|
|
exec go run "${ROOT_DIR}/cmd/zero-scale-ctl" "$@"
|
|
fi
|