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    /// Prints the JSON Schema of an entity type.
29    #[non_exhaustive]
30    GetJsonSchema(EntityTypeIdArgs),
31    /// Creates a new entity type.
32    #[non_exhaustive]
33    Create(CreateEntityTypeArgs),
34    /// Deletes a entity type.
35    #[non_exhaustive]
36    Delete(EntityTypeIdArgs),
37    /// Adds a property to an entity type.
38    #[non_exhaustive]
39    AddProperty(EntityTypeAddPropertyArgs),
40    /// Removes a property from an entity type.
41    #[non_exhaustive]
42    RemoveProperty(EntityTypePropertyArgs),
43    /// Adds an extension to an entity type.
44    #[non_exhaustive]
45    AddExtension(EntityTypeAddExtensionArgs),
46    /// Removes an extension from an entity type.
47    #[non_exhaustive]
48    RemoveExtension(EntityExtensionTypeIdArgs),
49    /// Adds a component to an entity type.
50    #[non_exhaustive]
51    AddComponent(EntityComponentTypeIdArgs),
52    /// Removes a component from an entity type.
53    #[non_exhaustive]
54    RemoveComponent(EntityComponentTypeIdArgs),
55    /// Updates the description of an entity type.
56    #[non_exhaustive]
57    UpdateDescription(EntityTypeUpdateDescriptionArgs),
58    /// Prints the JSON Schema of entity types.
59    #[non_exhaustive]
60    JsonSchema,
61}