pub async fn run_export(config: &Config, output: Option<&Path>) -> Result<()>
Export documents and chunks as JSON.
If output is Some, writes to that file path. Otherwise writes to stdout for piping.
output
Some