bw/platform/
mod.rs

1use clap::Subcommand;
2
3use crate::render::CommandResult;
4
5#[derive(Subcommand, Clone)]
6pub enum ConfigCommand {
7    Server {
8        base_url: Option<String>,
9
10        #[arg(
11            long,
12            help = "Provides a custom web vault URL that differs from the base URL."
13        )]
14        web_vault: Option<String>,
15
16        #[arg(
17            long,
18            help = "Provides a custom API URL that differs from the base URL."
19        )]
20        api: Option<String>,
21        #[arg(
22            long,
23            help = "Provides a custom identity URL that differs from the base URL."
24        )]
25        identity: Option<String>,
26        #[arg(
27            long,
28            help = "Provides a custom icons service URL that differs from the base URL."
29        )]
30        icons: Option<String>,
31        #[arg(
32            long,
33            help = "Provides a custom notifications URL that differs from the base URL."
34        )]
35        notifications: Option<String>,
36        #[arg(
37            long,
38            help = "Provides a custom events URL that differs from the base URL."
39        )]
40        events: Option<String>,
41
42        #[arg(long, help = "Provides the URL for your Key Connector server.")]
43        key_connector: Option<String>,
44    },
45}
46
47impl ConfigCommand {
48    #[allow(clippy::unused_async)]
49    pub async fn run(self) -> CommandResult {
50        todo!()
51    }
52}