Skip to content

Create CLI Binary with Check Command #115

Closed

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

Activity

  1. added 2 commits that reference this issue on Nov 3, 2025
  2. added 2 commits that reference this issue on Nov 4, 2025
  3. added a commit that references this issue on Nov 4, 2025
  4. added 2 commits that reference this issue on Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions