Skip to main content

Module handler

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:

  1. Basic Info (all states): Environment name, state, provider
  2. Infrastructure (Provisioned+): IP, SSH port, SSH user, SSH key path
  3. 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§

ShowCommandHandler
ShowCommandHandler extracts and formats environment information for display