cli/commands/internal/mod.rs
1pub mod graphql;
2
3#[derive(Debug, clap::Args)]
4pub struct Internal {
5 #[command(subcommand)]
6 pub command: InternalCommand,
7}
8
9#[derive(Debug, clap::Subcommand)]
10pub enum InternalCommand {
11 /// GraphQL endpoint introspection and management.
12 Graphql(graphql::Graphql),
13}
14
15impl Internal {
16 pub fn run(self) -> anyhow::Result<()> {
17 match self.command {
18 InternalCommand::Graphql(v) => v.run(),
19 }
20 }
21}