feat: add interactive pick project flow

This commit is contained in:
2026-08-23 08:08:21 +05:00
parent de9b6ad0dd
commit 31bbeca941
5 changed files with 152 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"]))]
#[command(group = ArgGroup::new("target").required(true).args(["project", "list", "list_servers", "pick"]))]
pub struct Cli {
/// Project name from deploy.toml
pub project: Option<String>,
@@ -22,4 +22,7 @@ pub struct Cli {
/// List configured servers and exit
#[arg(long)]
pub list_servers: bool,
/// Interactively pick a project to deploy (fuzzy search)
#[arg(long)]
pub pick: bool,
}