Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ subcommands:
about: "Stop all containers associated with this project"
args:
- POD_OR_SERVICE: *pod_or_service
- down:
about: "Stop all containers associated with this project. Alias for `stop`."
args:
- POD_OR_SERVICE: *pod_or_service
- rm:
about: "Remove the containers associated with a pod or service"
args:
Expand Down
2 changes: 1 addition & 1 deletion src/command_runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub trait CommandRunner {
/// A stripped down interface based on `std::process::Command`. We use
/// this so we can mock out shell commands during tests.
pub trait Command {
/// Add an arugment to our command.
/// Add an argument to our command.
fn arg<S: AsRef<OsStr>>(&mut self, arg: S) -> &mut Self;

/// Add several arguments to our command.
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ fn run(matches: &clap::ArgMatches<'_>) -> Result<()> {
let opts = cage::args::opts::Empty;
proj.compose(&runner, "restart", &acts_on, &opts)?;
}
"stop" => {
"stop" | "down" => {
let acts_on = sc_matches.to_acts_on("POD_OR_SERVICE", false);
let opts = cage::args::opts::Empty;
proj.compose(&runner, "stop", &acts_on, &opts)?;
Expand Down