← Back to issue list

Support output formats

View original Github issue

Metadata

Project
craft-cli
Number
#278
Type
issue
State
open
Author
mr-cal
Labels
—
Created
Updated
Closed
—

Current evaluation

Maintainer-filed feature request (Aug 2023) for a craft-cli API to render data as tables or machine-readable JSON; still unimplemented, tracked as CRAFT-3513, and blocking snapcraft#5060.

Suggested action: keep open

Reason: Authored by maintainer mr-cal with concrete rationale ('reduce code duplication inside and in between craft apps', 'more consistent UX') and an explicit downstream link to canonical/snapcraft#5060, which is still open and states its implementation depends on this craft-cli issue — so the need is externally validated and not yet satisfied. Code inspection confirms it is unimplemented: `craft_cli/dispatcher.py` `_DEFAULT_GLOBAL_ARGS` offers only help/verbose/quiet/verbosity with no output-format option, and grep for 'json'/'table' in craft_cli finds no output-formatting API (only docs prose and unrelated matches), with no commits mentioning 'output format'. Actionability is only mid-range because no design spec exists yet (format list, serialization model, CLI wiring and backwards-compat story are all undecided), so design work precedes implementation. Last activity is 570 days ago, but that alone is not grounds for closing — it has an internal JIRA ticket (CRAFT-3513) and an active downstream consumer.

Evaluated by: mr-cal-bot

Impact: 58 Quick Win: 8 Complexity: 70 Confidence: 82 Actionability: 48

Issue body

### What needs to get done Create an API to output data as a table or a machine readable format like json. ### Why it needs to get done * To reduce code duplication inside and in between craft apps. * More consistent UX Discussed during the starcraft clinics with @tigarmo and @lengau. Related: https://github.com/canonical/snapcraft/issues/5060

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 58
Quick Win: 8
Complexity: 70
Confidence: 82
Actionability: 48
keep open Maintainer-filed feature request (Aug 2023) for a craft-cli API to render data as tables or machine-readable JSON; still unimplemented, tracked as CRAFT-3513, and blocking snapcraft#5060.
qwen/qwen3.6-35b-a3b
Impact: 55
Quick Win: 10
Complexity: 55
Confidence: 70
Actionability: 40
needs triage Feature request to add a general API for outputting command data in different formats (table, JSON) to reduce duplication across craft apps. Unlabelled, no assignee, no maintainer response.
qwen/qwen3.8-27b
Impact: 55
Quick Win: 14
Staleness: 72
Complexity: 75
Confidence: 75
Support Request: 5
needs triage Feature request to add an API for outputting command data as a table or machine-readable format (e.g. JSON) to reduce duplication across craft apps. Unlabelled, no assignee, only a Jira-sync bot comment; the requested data-output API is not implemented (OutputFormat only covers help text).
qwen/qwen3.6-35b-a3b
Staleness: 75
Complexity: 40
Confidence: 85
Support Request: 10
needs triage Feature request for API to output data as table or JSON to reduce code duplication and improve UX. Discussed internally, linked to external issue. No maintainer triage or labels present.
qwen3.6-35b-a3b-mtp-q6
Staleness: 90
Complexity: 40
Confidence: 85
Support Request: 10
needs triage Feature request to add an API for outputting data in table or JSON formats to reduce duplication and improve UX. Unlabelled, no maintainer response, inactive for over a year.

Update history

No update history recorded yet.

Related work

  • Related To: canonical/snapcraft#5060 (confidence 90%)

    Explicitly linked in the issue body; that snapcraft issue ('Provide `status` output as a machine-readable format') is open and blocked on general output-formatting support here (SNAPCRAFT-1098).

Related issues

No related issues found above the similarity threshold.