reactive_graph/server/json_schema/commands.rs
1use crate::server::json_schema::args::InstancesArguments;
2use crate::server::json_schema::args::TypesArguments;
3use clap::Subcommand;
4
5#[derive(Subcommand, Debug)]
6pub enum JsonSchemaCommands {
7 /// Prints the JSON schema of the type system.
8 Types(TypesArguments),
9 /// Prints the JSON schema of the instance system.
10 Instances(InstancesArguments),
11}
12
13#[derive(Subcommand, Debug)]
14pub enum TypesCommands {
15 /// Prints the JSON schema of the component types.
16 Components,
17 /// Prints the JSON schema of the entity types.
18 Entities,
19 /// Prints the JSON schema of the relation types.
20 Relations,
21 /// Prints the JSON schema of the flow types.
22 Flows,
23}
24
25#[derive(Subcommand, Debug)]
26pub enum InstancesCommands {
27 /// Prints the JSON schema of the entity instances.
28 Entities,
29 /// Prints the JSON schema of the relation instances.
30 Relations,
31 /// Prints the JSON schema of the flow instances.
32 Flows,
33}