From 6969e844b08cbda36466b54f61254cc7ed519a30 Mon Sep 17 00:00:00 2001 From: Ivan Mincik Date: Tue, 26 Mar 2024 10:50:09 +0100 Subject: [PATCH 1/3] up: add missing new line to log message --- devenv/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devenv/src/main.rs b/devenv/src/main.rs index 26daede9b..c11f618b8 100644 --- a/devenv/src/main.rs +++ b/devenv/src/main.rs @@ -945,7 +945,7 @@ impl App { } { - let _logprogress = log::LogProgress::new("Starting processes", false); + let _logprogress = log::LogProgress::new("Starting processes", true); let process = process.unwrap_or(""); From 2ebe412f81504c9ed889cb057c900da30019a7e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Tue, 26 Mar 2024 10:09:49 +0000 Subject: [PATCH 2/3] fix short flag for --cores --- devenv/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devenv/src/main.rs b/devenv/src/main.rs index c11f618b8..1a5c022bb 100644 --- a/devenv/src/main.rs +++ b/devenv/src/main.rs @@ -40,7 +40,7 @@ struct Cli { max_jobs: u8, #[arg( - short = 'j', + short = 'u', long, help = "Maximum number CPU cores being used by a single build..", default_value = "2" From 2733e2744aeb8390575f9c068e18aae718ae8d06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Tue, 26 Mar 2024 10:12:57 +0000 Subject: [PATCH 3/3] fix #1057 --- devenv/src/main.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/devenv/src/main.rs b/devenv/src/main.rs index 1a5c022bb..3cbc67319 100644 --- a/devenv/src/main.rs +++ b/devenv/src/main.rs @@ -188,15 +188,15 @@ enum Commands { #[derive(Subcommand, Clone)] #[clap(about = "Start or stop processes. https://devenv.sh/processes/")] enum ProcessesCommand { - #[command(alias = "start")] + #[command(alias = "start", about = "Start processes in the foreground.")] Up { process: Option, - #[arg(short, long)] + #[arg(short, long, help = "Start processes in the background.")] detach: bool, }, - #[command(alias = "stop")] + #[command(alias = "stop", about = "Stop processes running in the background.")] Down {}, // TODO: Status/Attach } @@ -204,20 +204,20 @@ enum ProcessesCommand { #[derive(Subcommand, Clone)] #[clap(about = "Build, copy, or run a container. https://devenv.sh/containers/")] enum ContainerCommand { - #[clap(about = "Build a container.")] + #[command(about = "Build a container.")] Build { name: String }, - #[clap(about = "Copy a container.")] + #[command(about = "Copy a container.")] Copy { name: String }, - #[clap(about = "Run a container.")] + #[command(about = "Run a container.")] Run { name: String }, } #[derive(Subcommand, Clone)] #[clap(about = "Add an input to devenv.yaml. https://devenv.sh/inputs/")] enum InputsCommand { - #[clap(about = "Add an input to devenv.yaml.")] + #[command(about = "Add an input to devenv.yaml.")] Add { #[arg(help = "The name of the input.")] name: String,