Skip to content

Commit 1fae1eb

Browse files
ezoushenclaude
andcommitted
feat: add detailed inspection flags to status command
Added three new display modes for the status command: **--detailed / --inspect** Shows comprehensive container information including: - Container status and uptime - Image details and version - Network configuration and port mappings - Resource usage (CPU, memory) - Health check status - Environment variable count (redacted) - Mounted volumes - Recent logs (last 10 lines) **--configuration / --env** Shows container configuration: - Environment variables (with sensitive values redacted) - Volume mounts - Network settings and port mappings **--health** Shows health check information: - Overall health status - Health check configuration (test, interval, timeout, retries) - Recent health check history (last 5 results) - Pass/fail status with timestamps These flags can be combined to show multiple views: axon status production --detailed --health Changes: - Added status flags to axon main script - Implemented display functions in tools/status.sh - Updated command help in lib/command-parser.sh - Sensitive values automatically redacted (PASSWORD, SECRET, KEY, TOKEN, etc.) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 628b5b1 commit 1fae1eb

File tree

4 files changed

+352
-10
lines changed

4 files changed

+352
-10
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.7
1+
0.2.0

axon

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ SETUP_TARGET=""
5454
AUTO_INSTALL=false
5555
INTERACTIVE=false
5656
OUTPUT_FILE=""
57+
# Status command flags
58+
STATUS_DETAILED=false
59+
STATUS_CONFIG=false
60+
STATUS_HEALTH=false
5761

5862
#==============================================================================
5963
# Helper Functions
@@ -384,6 +388,18 @@ cmd_status() {
384388
status_args+=("$ENVIRONMENT")
385389
fi
386390

391+
if [ "$STATUS_DETAILED" = true ]; then
392+
status_args+=("--detailed")
393+
fi
394+
395+
if [ "$STATUS_CONFIG" = true ]; then
396+
status_args+=("--configuration")
397+
fi
398+
399+
if [ "$STATUS_HEALTH" = true ]; then
400+
status_args+=("--health")
401+
fi
402+
387403
verbose "Calling status.sh with args: ${status_args[*]}"
388404
execute "\"$SCRIPT_DIR/tools/status.sh\" ${status_args[*]}"
389405
}
@@ -574,6 +590,18 @@ while [[ $# -gt 0 ]]; do
574590
OUTPUT_FILE="$2"
575591
shift 2
576592
;;
593+
--detailed|--inspect)
594+
STATUS_DETAILED=true
595+
shift
596+
;;
597+
--configuration|--env)
598+
STATUS_CONFIG=true
599+
shift
600+
;;
601+
--health)
602+
STATUS_HEALTH=true
603+
shift
604+
;;
577605
-h|--help)
578606
show_command_help "$COMMAND"
579607
exit 0

lib/command-parser.sh

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,14 +175,22 @@ Usage: axon status [environment] [options]
175175
176176
Show container status for all environments or a specific environment.
177177
178+
Display modes (can be combined):
179+
--detailed, --inspect Show comprehensive container information
180+
--configuration, --env Show configuration (env vars, volumes, ports)
181+
--health Show health check status and history
182+
178183
OPTIONS:
179184
-c, --config FILE Config file (default: axon.config.yml)
180185
-h, --help Show this help
181186
182187
EXAMPLES:
183-
axon status # All environments
184-
axon status production # Specific environment
185-
axon status --config custom.yml
188+
axon status # Summary of all environments
189+
axon status production # Summary of specific environment
190+
axon status production --detailed # Detailed information
191+
axon status staging --health # Health check status
192+
axon status --configuration # Configuration for all environments
193+
axon status production --detailed --health # Combined views
186194
EOF
187195
;;
188196
logs)

0 commit comments

Comments
 (0)