reactive_graph/shared/config/
plugins.rs

1use clap::Parser;
2
3#[derive(Parser, Debug)]
4pub struct PluginsConfigArgs {
5    /// If true, all plugins will be disabled.
6    #[arg(short = 'x', long, env = "REACTIVE_GRAPH_DISABLE_ALL_PLUGINS")]
7    pub disable_all_plugins: Option<bool>,
8
9    /// The list of plugins to disable.
10    #[arg(short = 'p', long)]
11    pub disabled_plugins: Option<Vec<String>>,
12
13    /// The list of plugins to enable.
14    #[arg(short = 'P', long)]
15    pub enabled_plugins: Option<Vec<String>>,
16
17    /// If true, hot deployment will be disabled.
18    #[arg(long, env = "REACTIVE_GRAPH_DISABLE_HOT_DEPLOY")]
19    pub disable_hot_deploy: Option<bool>,
20
21    /// The folder which is watched for hot deployment.
22    #[arg(long, env = "REACTIVE_GRAPH_HOT_DEPLOY_LOCATION")]
23    pub hot_deploy_location: Option<String>,
24
25    /// The folder which plugins are installed permanently.
26    #[arg(long, env = "REACTIVE_GRAPH_INSTALL_LOCATION")]
27    pub install_location: Option<String>,
28}