injm 0.5.0

A CLI tool that injects content into marked regions in source files.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
mod cli;
mod cmd;
mod core;
mod output;

use crate::core::types::Result;
use clap::Parser;

fn main() -> Result<()> {
    let cli = cli::Cli::parse();

    match cli.command {
        cli::Commands::Inject(args) => {
            cmd::inject::run(args.input, args.output, args.dry_run, args.id)
        }
        cli::Commands::List(args) => cmd::list::run(args.input, args.format),
    }
}