#![allow(dead_code)] use cli_integration_test::IntegrationTestEnvironment; use short::BIN_NAME; fn cmd_help() { let e = IntegrationTestEnvironment::new("cmd_help"); let mut command = e.command(BIN_NAME).unwrap(); let r = command.assert(); r.stderr( r#" short 0.0.2 Vincent Herlemont USAGE: short [FLAGS] [OPTIONS] [SUBCOMMAND] FLAGS: --dry-run Disable all executions -h, --help Prints help information -V, --version Prints version information OPTIONS: -s, --setup Set up name -e, --env Environment name SUBCOMMANDS: init Create an empty "short.yaml" configuration file env Manage environment deploy Deploy your set up show Show your current set up use Switch of current setup or/and environment ls List set up and environments help Prints this message or the help of the given subcommand(s) "#, ); } fn cmd_help_env() { let e = IntegrationTestEnvironment::new("cmd_help"); let mut command = e.command(BIN_NAME).unwrap(); let r = command.arg("env").assert(); r.stderr( r#"short-env Manage environment USAGE: short env [FLAGS] [OPTIONS] FLAGS: --dry-run Disable all executions -h, --help Prints help information OPTIONS: -s, --setup Set up name -e, --env Environment name SUBCOMMANDS: new Add new environment dir Change env directory pdir Add or change private env directory help Prints this message or the help of the given subcommand(s) "#, ); }