jimtcl 0.2.0

Embed Jim Tcl in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::{mem, process};

use clap::Parser;
use jimtcl::{Interp, JimResult, cli::Jimsh};

fn main() -> JimResult<()> {
    let cli = Jimsh::parse();
    let interp = Interp::new()?;
    let rc = cli.run(&interp)?;
    mem::drop(interp);
    process::exit(rc);
}