harn-cli 0.10.11

CLI for the Harn programming language — run, test, REPL, format, and lint
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::path::PathBuf;

use clap::Parser;

#[derive(Debug, Parser)]
pub(crate) struct DocArgs {
    /// Harn file or project directory to document. Defaults to the current
    /// directory. Every `.harn` file under a directory is scanned for `pub`
    /// symbols; nested `target`, `.git`, `.harn`, and `node_modules` trees
    /// are skipped.
    #[arg(default_value = ".")]
    pub path: PathBuf,

    /// Write the rendered Markdown to this file instead of stdout.
    #[arg(long, value_name = "PATH")]
    pub output: Option<PathBuf>,
}