Module cli

Module cli 

Source
Expand description

CLI command definitions and argument parsing.

This module contains all command-line interface structures for the HEDL CLI, organized into logical categories for better maintainability.

§Organization

Commands are organized into the following modules:

  • [core]: Core commands (validate, format, lint, inspect, stats)
  • [conversion]: Format conversion commands (JSON, YAML, XML, CSV, Parquet)
  • [batch]: Batch processing commands (batch-validate, batch-format, batch-lint)
  • [utility]: Utility commands (completion)

§Design Principles

  • Single Responsibility: Each submodule handles one category of commands
  • Consistent API: All commands follow the same argument patterns
  • Type Safety: Strongly typed arguments with validation
  • Extensibility: Easy to add new commands within existing categories

Enums§

BatchCommands
Batch processing commands.
Commands
Top-level CLI commands enum.
ConversionCommands
Format conversion commands.
CoreCommands
Core HEDL commands.
UtilityCommands
Utility commands.