-
Notifications
You must be signed in to change notification settings - Fork 99
feat: describegpt replace --json option with --format option supporting 3 formats - markdown, json and TSV; remove --jsonl option
#3167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- remove DuckDB MCP validation for now as its not reliable - write each output kind to its own TSV - rust fmt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR replaces the --json and --jsonl command-line options with a unified --format option that supports three output formats: markdown (default), json, and tsv. The change also removes DuckDB MCP validation support and the associated sample file generation code. The new TSV format provides an easier-to-parse alternative to CSV for data with free text containing commas.
Key changes:
- Introduced
OutputFormatenum with Markdown, Tsv, and Json variants - Replaced
--json/--jsonlflags with--formatoption accepting "markdown", "md", "tsv", or "json" - Added five new TSV formatting functions for different prompt types
- Removed DuckDB MCP extension support and sample file generation logic
- Updated validation to require
--outputflag when using TSV format
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| src/cmd/describegpt.rs | Implements the new --format option, adds OutputFormat enum and TSV formatting functions, removes DuckDB MCP support and sample file generation, updates output format detection and file path handling for TSV |
| resources/describegpt_defaults.toml | Updates version to 6.2.0, removes jsonl field, refines DuckDB SQL guidance to reference Data Dictionary |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
resolves #3155
we use TSV instead of CSV as its easier to parse, especially for input data with free text using commas.