harn-cli 0.8.16

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

use clap::Args;

#[derive(Clone, Debug, Default, Args)]
pub(crate) struct ProfileArgs {
    /// Print a categorical timing breakdown (LLM vs tools vs steps vs VM/residual).
    #[arg(
        long = "profile",
        env = "HARN_PROFILE",
        action = clap::ArgAction::SetTrue,
        value_parser = clap::builder::BoolishValueParser::new()
    )]
    pub text: bool,
    /// Write the profile rollup as JSON to the given path. Implies `--profile`.
    #[arg(long = "profile-json", env = "HARN_PROFILE_JSON", value_name = "PATH")]
    pub json_path: Option<PathBuf>,
}