-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
Parent Issue: #113 - Create Dependency Installation Package for E2E Tests
Depends On: #114 - Create Detection Logic Package (Issue 1-1-1)
Epic: #112 - Refactor and Improve E2E Test Execution
Overview
Create a CLI binary that uses the detection logic from Phase 1 to provide user-friendly commands for checking dependency status. This phase focuses on exposing the detection functionality through a command-line interface.
This is Phase 2 of 4 for building the dependency installation package.
Objectives
- Create
src/bin/dependency-installer.rsbinary - Implement CLI using clap with subcommands
- Add
checkcommand to verify all dependencies - Add
listcommand to show available tools - Implement proper exit codes for scripting
- Add comprehensive help text and examples
Key Components
CLI Commands:
dependency-installer check # Check all dependencies
dependency-installer check opentofu # Check specific tool
dependency-installer list # List all available toolsExit Codes:
- 0: Success (all checks passed)
- 1: Missing dependencies
- 2: Invalid arguments
- 3: Internal error
Acceptance Criteria
- Pre-commit checks pass
- CLI binary builds and runs successfully
- All commands work as specified
- Exit codes are correct for all scenarios
- Help text is clear and comprehensive
- Logging works correctly
Time Estimate
2-3 hours
Related Documentation
- Full specification: docs/issues/115-1-1-2-create-cli-binary-with-check-command.md
- Issue 1-1-1: Detection logic that this binary uses
Copilot