Skip to content

Commit

Permalink
Merge branch 'main' into update-containers-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
domenkozar authored Mar 26, 2024
2 parents 1ebb7c8 + 2733e27 commit c47dff2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions devenv/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -188,36 +188,36 @@ 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<String>,

#[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
}

#[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 to registry.")]
#[command(about = "Copy a container to registry.")]
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,
Expand Down

0 comments on commit c47dff2

Please sign in to comment.