Skip to content

Conversation

@jqnatividad
Copy link
Collaborator

resolves #3155

we use TSV instead of CSV as its easier to parse, especially for input data with free text using commas.

- remove DuckDB MCP validation for now as its not reliable
- write each output kind to its own TSV
- rust fmt
Copy link
Contributor

Copilot AI left a 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 OutputFormat enum with Markdown, Tsv, and Json variants
  • Replaced --json/--jsonl flags with --format option 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 --output flag 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

jqnatividad and others added 4 commits December 7, 2025 10:56
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@jqnatividad jqnatividad requested a review from Copilot December 7, 2025 16:47
Copy link
Contributor

Copilot AI left a 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.

jqnatividad and others added 2 commits December 7, 2025 11:52
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@jqnatividad jqnatividad merged commit 6c8f5b4 into master Dec 7, 2025
13 checks passed
@jqnatividad jqnatividad deleted the 3155-describegpt-format-option branch December 7, 2025 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

describegpt: replace --json with --format option

2 participants