Skip to main content

Module cli

Module cli 

Source
Expand description

The Rust toolkit’s one command grammar, which flow-toolkit-rust and every launcher it builds read alike (abi.md, Toolkits):

serve --contract FILE
extract --library ROOT --out CONTRACT [--depfile FILE]
export --library ROOT --out DIR
new DIR

flow-toolkit-rust runs each command. A library’s launcher runs serve and extract and refuses the others with UsageError::NotLauncher, so a bundle names an exported launcher as <launcher> serve, the way a library names flow-toolkit-rust serve. Every path is UTF-8, which the toolkit needs to name it in a Cargo manifest or a depfile.

Enums§

Argument
A word of a command that carries a path: an option, or new’s directory.
Command
A command of the Rust toolkit.
UsageError
Why a command line is no command this reader runs.

Constants§

USAGE
The command lines the grammar takes, after the program.