refactor: remove bao, docs, and people subcommands
- bao: replaced by `sunbeam vault` with proper JWT auth - docs: La Suite Docs not ready for production - people: La Suite People not ready for production
This commit is contained in:
@@ -126,13 +126,6 @@ pub enum Verb {
|
||||
kubectl_args: Vec<String>,
|
||||
},
|
||||
|
||||
/// bao CLI passthrough (runs inside OpenBao pod with root token).
|
||||
Bao {
|
||||
/// arguments forwarded verbatim to bao
|
||||
#[arg(trailing_var_arg = true, allow_hyphen_values = true)]
|
||||
bao_args: Vec<String>,
|
||||
},
|
||||
|
||||
/// Project management across Planka and Gitea.
|
||||
Pm {
|
||||
#[command(subcommand)]
|
||||
@@ -195,18 +188,6 @@ pub enum Verb {
|
||||
action: sunbeam_sdk::openbao::cli::VaultCommand,
|
||||
},
|
||||
|
||||
/// People / contacts (La Suite).
|
||||
People {
|
||||
#[command(subcommand)]
|
||||
action: sunbeam_sdk::lasuite::cli::PeopleCommand,
|
||||
},
|
||||
|
||||
/// Documents (La Suite).
|
||||
Docs {
|
||||
#[command(subcommand)]
|
||||
action: sunbeam_sdk::lasuite::cli::DocsCommand,
|
||||
},
|
||||
|
||||
/// Video meetings (La Suite).
|
||||
Meet {
|
||||
#[command(subcommand)]
|
||||
@@ -643,18 +624,6 @@ mod tests {
|
||||
assert!(matches!(cli.verb, Some(Verb::Vault { .. })));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_people_contact_list() {
|
||||
let cli = parse(&["sunbeam", "people", "contact", "list"]);
|
||||
assert!(matches!(cli.verb, Some(Verb::People { .. })));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_docs_document_list() {
|
||||
let cli = parse(&["sunbeam", "docs", "document", "list"]);
|
||||
assert!(matches!(cli.verb, Some(Verb::Docs { .. })));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_meet_room_list() {
|
||||
let cli = parse(&["sunbeam", "meet", "room", "list"]);
|
||||
@@ -912,10 +881,6 @@ pub async fn dispatch() -> Result<()> {
|
||||
sunbeam_sdk::kube::cmd_k8s(&kubectl_args).await
|
||||
}
|
||||
|
||||
Some(Verb::Bao { bao_args }) => {
|
||||
sunbeam_sdk::kube::cmd_bao(&bao_args).await
|
||||
}
|
||||
|
||||
Some(Verb::Auth { action }) => {
|
||||
let sc = sunbeam_sdk::client::SunbeamClient::from_context(
|
||||
&sunbeam_sdk::config::active_context(),
|
||||
@@ -972,20 +937,6 @@ pub async fn dispatch() -> Result<()> {
|
||||
sunbeam_sdk::openbao::cli::dispatch(action, &sc, cli.output_format).await
|
||||
}
|
||||
|
||||
Some(Verb::People { action }) => {
|
||||
let sc = sunbeam_sdk::client::SunbeamClient::from_context(
|
||||
&sunbeam_sdk::config::active_context(),
|
||||
);
|
||||
sunbeam_sdk::lasuite::cli::dispatch_people(action, &sc, cli.output_format).await
|
||||
}
|
||||
|
||||
Some(Verb::Docs { action }) => {
|
||||
let sc = sunbeam_sdk::client::SunbeamClient::from_context(
|
||||
&sunbeam_sdk::config::active_context(),
|
||||
);
|
||||
sunbeam_sdk::lasuite::cli::dispatch_docs(action, &sc, cli.output_format).await
|
||||
}
|
||||
|
||||
Some(Verb::Meet { action }) => {
|
||||
let sc = sunbeam_sdk::client::SunbeamClient::from_context(
|
||||
&sunbeam_sdk::config::active_context(),
|
||||
|
||||
Reference in New Issue
Block a user