Show Commands
Overview
Show commands display repository information in human-readable formats optimized for interactive terminal use. They provide formatted tables, lists, and text designed for visual consumption rather than programmatic processing.
Key Characteristics:
- Human-readable formatted output
- Tables with aligned columns
- Colorized status indicators
- Designed for terminal display
- Interactive exploration
When to use: During interactive development and troubleshooting when you need to quickly understand repository state.
For automation: Use get commands instead, which provide JSON output.
All Show Commands
Module & Repository Information
| Command | Purpose | Output |
|---|---|---|
| show modules | Display module contracts | Table |
| show moduletypes | Module types grouped by count | Grouped list |
| show dependencies | Module dependency graph | Table |
| show files | Repository files with ownership | Table |
| show files-changed | Modified files with ownership | Table |
| show files-staged | Staged files with ownership | Table |
| show config | Configuration with defaults | Formatted text |
Build & Test Results
| Command | Purpose | Output |
|---|---|---|
| show build-summary | Build summary for GitHub Actions | Markdown report |
| show build-times | Build timing analysis | Table |
| show test-summary | Test summary for GitHub Actions | Markdown report |
| show test-timings | Test timing analysis | Table |
| show tests | All tests in repository | Table |
| show suite | Test suite details | Formatted text |
Environment & Workspace
| Command | Purpose | Output |
|---|---|---|
| show environments | Environment contracts | Table |
| show workspaces | Git worktrees and status | Table |
| show artifacts | Build artifacts with status | Table |
| show books | Documentation books | Table |
Help System
| Command | Purpose | Output |
|---|---|---|
| show help | Command help information | Formatted text |
| show valid-commands | All valid commands | Table |
Common Patterns
Table Output
Most show commands display data as formatted tables:
$ r2r eac show modules
┌───────────────┬─────────────┬────────────────────┬──────┐
│ Moniker │ Type │ Path │ Files│
├───────────────┼─────────────┼────────────────────┼──────┤
│ eac-commands │ go-commands │ go/eac/commands │ 45 │
│ eac-core │ go-library │ go/eac/core │ 32 │
│ src-auth │ go-library │ go/src/auth │ 18 │
└───────────────┴─────────────┴────────────────────┴──────┘
Features:
- Aligned columns
- Headers with separators
- Auto-truncated long values
- Sorted by relevance
Status Indicators
Commands use symbols and colors for status:
Report Format
Summary commands generate markdown-compatible reports:
# Test Summary: module-name (suite-name)
## Results
✓ Passed: 45
✗ Failed: 2
Total: 47 (95.7% pass rate)
## Performance
- Average: 0.45s
- Total: 21.6s
show vs get Duality
Many show commands have corresponding get commands that provide the same information in JSON format:
| show command | get command | Use Case |
|---|---|---|
show modules |
get modules |
Module information |
show dependencies |
get dependencies |
Dependency graph |
show files |
get files |
File ownership |
show config |
get config |
Configuration |
show tests |
get tests |
Test information |
show environments |
get environments |
Environment contracts |
show build-times |
get build-times |
Build performance |
show test-timings |
get test-timings |
Test performance |
show suite <name> |
get suite <name> |
Test suite details |
show artifacts <m> |
get artifacts <m> |
Build artifacts |
show valid-commands |
get valid-commands |
Command list |
Rule: Use show for interactive terminal use, get for scripts and automation.
Common Workflows
Exploring the Repository
# Start with modules
r2r eac show modules
# Understand dependencies
r2r eac show dependencies
# See file organization
r2r eac show files
# Check configuration
r2r eac show config
Checking Status
# See what's changed
r2r eac show files-changed
# Check workspaces
r2r eac show workspaces
# View test status
r2r eac show tests
Reviewing Results
# Build summary
r2r eac show build-summary eac-commands
# Test summary
r2r eac show test-summary src-auth acceptance
# Performance analysis
r2r eac show build-times
r2r eac show test-timings
Getting Help
# General help
r2r eac show help
# List all commands
r2r eac show valid-commands
# Command-specific help
r2r eac help <command>
Usage Examples
Module Discovery
# All modules
r2r eac show modules
# Module types
r2r eac show moduletypes
# Dependency graph
r2r eac show dependencies
File Investigation
# All files (large output)
r2r eac show files
# Changed files only
r2r eac show files-changed
# Staged files only
r2r eac show files-staged
Test Analysis
# All tests
r2r eac show tests
# Specific suite
r2r eac show suite acceptance
# Test performance
r2r eac show test-timings
# Test summary for CI
r2r eac show test-summary src-auth acceptance
Environment Information
# Environments
r2r eac show environments
# Documentation books
r2r eac show books
# Git worktrees
r2r eac show workspaces
Output Customization
Piping to less
For large output, pipe to less:
Filtering with grep
Filter output with grep:
# Find specific module
r2r eac show modules | grep "src-auth"
# Find failed tests
r2r eac show tests | grep "✗"
# Find go-library modules
r2r eac show modules | grep "go-library"
Saving Output
Save formatted output to files:
# Save to file
r2r eac show modules > modules.txt
# Append to log
r2r eac show test-summary src-auth acceptance >> test-report.log
Performance Notes
Fast Commands
These commands execute quickly (< 1s):
show modulesshow moduletypesshow dependenciesshow configshow workspacesshow environmentsshow books
Moderate Commands
These commands may take a few seconds:
show files(loads ~2,690 files)show tests(scans all test files)show build-times(parses build logs)show test-timings(parses test logs)
Expensive Commands
Avoid in tight loops:
show files- Loads all files (~19k tokens)- Use
show files-changedorshow files-stagedinstead when possible
Best Practices
Interactive Use
- Start with show modules to understand repository structure
- Use show commands for exploration rather than scripting
- Pipe large output to less for easier navigation
- Use grep for filtering when you know what you're looking for
When to Use get Instead
Use get commands when you need to:
- Process output with jq or other tools
- Cache results for repeated queries
- Integrate with CI/CD pipelines
- Parse data programmatically
Combining Commands
# Find module, then show its dependencies
MODULE=$(r2r eac show modules | grep "src-auth" | awk '{print $1}')
r2r eac show dependencies | grep "$MODULE"
# Better: use get commands for this
r2r eac get dependencies | jq ".dependencies[\"src-auth\"]"
Common Issues
Output Too Large
Problem: Command output fills the screen
Solution: Pipe to less or filter with grep
Colors Not Working
Problem: No color in output
Solution: Ensure terminal supports colors, or check if output is piped
Table Misaligned
Problem: Table columns don't align
Solution: Ensure terminal is wide enough or use narrower output
# Use get command for narrow terminals
r2r eac get modules | jq -r '.modules[] | "\(.moniker): \(.type)"'
See Also
- Get Commands - JSON output for automation
- Output Formats - Understanding output types
- Command Taxonomy - Command organization
- Show Commands Guide - How-to guide
Tutorials | How-to Guides | Explanation | Reference
You are here: Reference — information-oriented technical descriptions of the system.