Skip to main content

Module cli

Module cli 

Source
Expand description

CLI command definitions and argument parsing. 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)
  • completion: Shell completion generation

§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.
CompletionCommands
Shell completion generation commands.
ConversionCommands
Format conversion commands.
CoreCommands
Core HEDL commands.