feat: add deploy from current work directory command

This commit is contained in:
2026-08-25 11:08:11 +05:00
parent 5126e10e9d
commit 608dc5f624
4 changed files with 98 additions and 8 deletions
+4 -1
View File
@@ -6,7 +6,7 @@ use clap::{ArgGroup, Parser};
#[derive(Debug, Parser)]
#[command(name = "xboctploy", version, about)]
#[command(arg_required_else_help = true)]
#[command(group = ArgGroup::new("target").required(true).args(["project", "list", "list_servers", "pick"]))]
#[command(group = ArgGroup::new("target").required(true).args(["project", "list", "list_servers", "pick", "this"]))]
pub struct Cli {
/// Project name from deploy.toml
pub project: Option<String>,
@@ -25,4 +25,7 @@ pub struct Cli {
/// Interactively pick a project to deploy (fuzzy search)
#[arg(long)]
pub pick: bool,
/// Deploy the project whose workdir matches the current folder (global config)
#[arg(long)]
pub this: bool,
}