about summary refs log tree commit diff stats
path: root/crates/rocie-server/src/cli.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/rocie-server/src/cli.rs')
-rw-r--r--crates/rocie-server/src/cli.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/crates/rocie-server/src/cli.rs b/crates/rocie-server/src/cli.rs
new file mode 100644
index 0000000..5961ab7
--- /dev/null
+++ b/crates/rocie-server/src/cli.rs
@@ -0,0 +1,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,
+}