Skip to main content

Crate kallo_cli

Crate kallo_cli 

Source
Expand description

kalo — the command line front end for Kallo.

The binary itself is a three-line wrapper. Everything lives in this crate so that a command can be exercised from a test without spawning a process:

use clap::Parser;
use kallo_cli::cli::Cli;

let cli = Cli::parse_from(["kalo", "stocks"]);
kallo_cli::run(cli).unwrap();

Modules§

cli
The command line surface.
commands
One module per subcommand.
error
Failures a user can cause, with enough context to fix them.
filmfile
Reading a .kalofilm file — the format in data/films/FORMAT.md.
stockfile
A stock as data: the file format, its parser, and its checker.

Functions§

run
Run a parsed command.