reactive_graph/client/types/entities/
commands.rs

1use crate::client::types::entities::args::add_extension::EntityTypeAddExtensionArgs;
2use crate::client::types::entities::args::add_property::EntityTypeAddPropertyArgs;
3use crate::client::types::entities::args::create::CreateEntityTypeArgs;
4use crate::client::types::entities::args::entity_component_type::EntityComponentTypeIdArgs;
5use crate::client::types::entities::args::entity_extension_type::EntityExtensionTypeIdArgs;
6use crate::client::types::entities::args::entity_type_property::EntityTypePropertyArgs;
7use crate::client::types::entities::args::type_id::EntityTypeIdArgs;
8use crate::client::types::entities::args::update_description::EntityTypeUpdateDescriptionArgs;
9use clap::Subcommand;
10
11#[derive(Subcommand, Debug, Clone)]
12pub(crate) enum EntityTypesCommands {
13    /// List all entity types.
14    #[non_exhaustive]
15    List,
16    /// Prints a single entity type.
17    #[non_exhaustive]
18    Get(EntityTypeIdArgs),
19    /// List the properties of an entity type.
20    #[non_exhaustive]
21    ListProperties(EntityTypeIdArgs),
22    /// List the extensions of an entity type.
23    #[non_exhaustive]
24    ListExtensions(EntityTypeIdArgs),
25    /// List the components of an entity type.
26    #[non_exhaustive]
27    ListComponents(EntityTypeIdArgs),
28    /// Creates a new entity type.
29    #[non_exhaustive]
30    Create(CreateEntityTypeArgs),
31    /// Deletes a entity type.
32    #[non_exhaustive]
33    Delete(EntityTypeIdArgs),
34    /// Adds a property to an entity type.
35    #[non_exhaustive]
36    AddProperty(EntityTypeAddPropertyArgs),
37    /// Removes a property from an entity type.
38    #[non_exhaustive]
39    RemoveProperty(EntityTypePropertyArgs),
40    /// Adds an extension to an entity type.
41    #[non_exhaustive]
42    AddExtension(EntityTypeAddExtensionArgs),
43    /// Removes an extension from an entity type.
44    #[non_exhaustive]
45    RemoveExtension(EntityExtensionTypeIdArgs),
46    /// Adds a component to an entity type.
47    #[non_exhaustive]
48    AddComponent(EntityComponentTypeIdArgs),
49    /// Removes a component from an entity type.
50    #[non_exhaustive]
51    RemoveComponent(EntityComponentTypeIdArgs),
52    /// Updates the description of an entity type.
53    #[non_exhaustive]
54    UpdateDescription(EntityTypeUpdateDescriptionArgs),
55    /// Prints the JSON Schema of entity types.
56    #[non_exhaustive]
57    JsonSchema,
58}