vivacity 0.17.0

Fast, Composer-compatible installer for PHP projects: install, update, require, remove, dump-autoload
Documentation
//! The library entry point: a host program calls `vivacity::run` with a
//! command line and gets the binary's exit code.

#[test]
fn run_returns_the_binary_exit_codes() {
    assert_eq!(vivacity::run(["vivacity", "--version"]), 0);
    assert_eq!(vivacity::run(["vivacity", "--help"]), 0);
    assert_eq!(vivacity::run(["vivacity", "bogus"]), 2);
    assert_eq!(vivacity::run(["vivacity", "install", "--no-such-flag"]), 2);
    let missing = tempfile::tempdir().expect("tmp");
    let dir = missing.path().join("absent");
    assert_eq!(
        vivacity::run([
            "vivacity",
            "install",
            "--no-fallback",
            "--working-dir",
            dir.to_str().expect("utf8")
        ]),
        1
    );
}