Skip to main content

Crate vivacity

Crate vivacity 

Source
Expand description

vivacity: a fast, Composer-compatible installer. Each line goes to the stream Composer writes it on: stdout for the few Composer sends there (plugins’ lines, GitHub Actions annotations), stderr for the rest of the narrative. Exit codes: 0 ok, 1 runtime error, 2 usage (clap), 3 out of scope with no fallback possible, 4 platform.

The vivacity binary is just a call to run: another program can embed the commands as they are (vivacity::run(["vivacity", "install", …])) and get the same exit code.

Functions§

run
Run a vivacity command line (args[0] is the program name, as in std::env::args()), runtime errors included: the return value is the binary’s exit code. A usage error (clap) prints the help or the message and returns 2; --help/--version return 0.