Skip to content

Create CLI Binary with Check Command #115

@josecelano

Description

@josecelano

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.rs binary
  • Implement CLI using clap with subcommands
  • Add check command to verify all dependencies
  • Add list command 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 tools

Exit 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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions