Skip to main content

Module cli

Module cli 

Source
Expand description

Clap-based CLI argument parsing for fraiseql-server.

The Cli struct defines all command-line flags and their corresponding environment variable fallbacks. Clap’s env attribute provides automatic CLI flag > env var > default precedence.

§Sharing with fraiseql-cli

Cli is re-exported from fraiseql_server so that the fraiseql run subcommand can embed it via #[command(flatten)], eliminating duplicated env-var handling between the two binaries.

Structs§

Cli
FraiseQL Server — compiled GraphQL execution engine.
ServerArgs
Server configuration flags shared between fraiseql-server and fraiseql run.