reactive_graph/client/types/components/
commands.rs1use clap::Subcommand;
2
3use crate::client::types::components::args::add_extension::ComponentAddExtensionArgs;
4use crate::client::types::components::args::add_property::ComponentAddPropertyArgs;
5use crate::client::types::components::args::component_extension_type::ComponentExtensionTypeIdArgs;
6use crate::client::types::components::args::component_property::ComponentPropertyArgs;
7use crate::client::types::components::args::create::CreateComponentArgs;
8use crate::client::types::components::args::type_id::ComponentTypeIdArgs;
9use crate::client::types::components::args::update_description::ComponentUpdateDescriptionArgs;
10
11#[derive(Subcommand, Debug, Clone)]
12pub(crate) enum ComponentsCommands {
13 #[non_exhaustive]
15 List,
16 #[non_exhaustive]
18 Get(ComponentTypeIdArgs),
19 #[non_exhaustive]
21 ListProperties(ComponentTypeIdArgs),
22 #[non_exhaustive]
24 ListExtensions(ComponentTypeIdArgs),
25 #[non_exhaustive]
27 GetJsonSchema(ComponentTypeIdArgs),
28 #[non_exhaustive]
30 Create(CreateComponentArgs),
31 #[non_exhaustive]
33 Delete(ComponentTypeIdArgs),
34 #[non_exhaustive]
36 AddProperty(ComponentAddPropertyArgs),
37 #[non_exhaustive]
39 RemoveProperty(ComponentPropertyArgs),
40 #[non_exhaustive]
42 AddExtension(ComponentAddExtensionArgs),
43 #[non_exhaustive]
45 RemoveExtension(ComponentExtensionTypeIdArgs),
46 #[non_exhaustive]
48 UpdateDescription(ComponentUpdateDescriptionArgs),
49 #[non_exhaustive]
51 JsonSchema,
52}