feat: add interactive pick project flow
This commit is contained in:
+4
-1
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user