about summary refs log tree commit diff stats
path: root/crates/rocie-server/src/cli.rs
blob: 5961ab76ab5b577905c3dbf6fe860d92e7b49dbf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use clap::{Parser, Subcommand};

#[derive(Parser)]
pub(crate) struct CliArgs {
    #[command(subcommand)]
    pub(crate) command: Command,
}

#[derive(Subcommand)]
pub(crate) enum Command {
    /// Serve the server on the default ports.
    Serve,

    /// Print the `OpenAPI` API documentation to stdout.
    OpenApi,
}