Skip to main content

sqlite_graphrag/output/
format.rs

1//! `--format` value enums shared by the subcommand argument structs.
2
3/// Output format variants accepted by `--format` CLI flags.
4#[derive(Debug, Clone, Copy, clap::ValueEnum, Default)]
5pub enum OutputFormat {
6    /// JSON variant.
7    #[default]
8    Json,
9    /// Text variant.
10    Text,
11    /// Markdown variant.
12    Markdown,
13}
14
15/// Restricted JSON-only format for commands that always emit JSON.
16#[derive(Debug, Clone, Copy, clap::ValueEnum, Default)]
17pub enum JsonOutputFormat {
18    /// JSON variant.
19    #[default]
20    Json,
21}