reactive_graph_client/client/instances/flows/
commands.rs

1use crate::client::instances::flows::args::create_from_type::CreateFlowInstanceFromTypeArgs;
2use crate::client::instances::flows::args::id::IdArgs;
3use crate::client::instances::flows::args::label::LabelArgs;
4use crate::client::instances::flows::args::search::SearchFlowInstancesArgs;
5use clap::Subcommand;
6
7#[derive(Subcommand, Debug, Clone)]
8pub(crate) enum FlowInstancesCommands {
9    /// List all flow instances.
10    #[non_exhaustive]
11    List(SearchFlowInstancesArgs),
12    /// Prints a single flow instance.
13    #[non_exhaustive]
14    Get(IdArgs),
15    /// Prints a single flow instance.
16    #[non_exhaustive]
17    GetByLabel(LabelArgs),
18
19    //
20    // /// Creates a new flow and a corresponding wrapper entity instance.
21    // #[non_exhaustive]
22    // Create(CreateFlowInstanceArgs),
23    //
24    /// Creates a new flow from the given type.
25    #[non_exhaustive]
26    CreateFromType(CreateFlowInstanceFromTypeArgs),
27
28    //
29    // TODO: create_entity
30    // TODO: add_entity
31    // TODO: remove_entity
32    //
33    // TODO: create_relation
34    // TODO: add_relation
35    // TODO: remove_relation
36    //
37
38    // Deletes a flow instance.
39    #[non_exhaustive]
40    Delete(IdArgs),
41    /// Prints the JSON Schema of flow instances.
42    #[non_exhaustive]
43    JsonSchema,
44}