reactive_graph/client/system/plugin/
commands.rs

1use clap::Subcommand;
2
3use crate::client::system::plugin::args::PluginByNameArgs;
4use crate::client::system::plugin::args::SearchPluginsArgs;
5
6#[derive(Subcommand, Debug, Clone)]
7pub(crate) enum PluginsCommands {
8    /// Lists all plugins.
9    #[non_exhaustive]
10    List,
11    /// Search for plugins by name, state or stem.
12    #[non_exhaustive]
13    Search(SearchPluginsArgs),
14    /// Prints a single plugin.
15    #[non_exhaustive]
16    Get(PluginByNameArgs),
17    /// Depends on.
18    #[non_exhaustive]
19    Dependencies(PluginByNameArgs),
20    /// Dependent plugins.
21    #[non_exhaustive]
22    Dependents(PluginByNameArgs),
23    /// Starts a plugin.
24    #[non_exhaustive]
25    Start(PluginByNameArgs),
26    /// Stops a plugin.
27    #[non_exhaustive]
28    Stop(PluginByNameArgs),
29    /// Restarts a plugin.
30    #[non_exhaustive]
31    Restart(PluginByNameArgs),
32    /// Uninstall a plugin.
33    #[non_exhaustive]
34    Uninstall(PluginByNameArgs),
35}