Skip to main content

bw/platform/
mod.rs

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