frontmatter_gen

Module cli

Source
Expand description

§Command Line Interface Module

This module provides the command-line interface functionality for the frontmatter-gen library. It handles parsing of command-line arguments and executing the corresponding operations.

§Features

  • Command-line argument parsing using clap
  • Subcommands for different operations (extract, validate)
  • Error handling and user-friendly messages

§Usage

# Extract frontmatter
cargo run --features="cli" extract input.md --format yaml

# Validate frontmatter
cargo run --features="cli" validate input.md --required title,date

Structs§

  • Command line arguments parser