Expand description
Show command handler implementation
Purpose: Display environment information and status
This handler retrieves and displays information about an environment from storage. It is a read-only operation that does not modify any state or make any network calls.
§Display Strategy
The show command displays state-aware information:
- Basic Info (all states): Environment name, state, provider
- Infrastructure (Provisioned+): IP, SSH port, SSH user, SSH key path
- Next Step: Guidance based on current state
§Design Rationale
This command accepts an EnvironmentName in its execute method to align with other
command handlers (ProvisionCommandHandler, ConfigureCommandHandler). This design:
- Loads environment from repository (consistent pattern across all handlers)
- Allows showing environments regardless of compile-time state (runtime extraction)
- Read-only operation - no state modifications
Structs§
- Show
Command Handler ShowCommandHandlerextracts and formats environment information for display