reactive_graph/server/commands.rs
1#[cfg(target_os = "linux")]
2use crate::server::daemon::args::DaemonArguments;
3use crate::server::graphql_schema::args::GraphqlSchemaArguments;
4use crate::server::json_schema::args::JsonSchemaArguments;
5use clap::Subcommand;
6
7#[derive(Subcommand, Debug)]
8pub enum ServerCommands {
9 /// Runs the server as daemon.
10 #[cfg(target_os = "linux")]
11 Daemon(DaemonArguments),
12 /// Prints the GraphQL schema and exits.
13 #[clap()]
14 GraphqlSchema(GraphqlSchemaArguments),
15 /// Prints the JSON schema and exits.
16 JsonSchema(JsonSchemaArguments),
17}