Skip to content

Add --raw flag to project list command - #3

Merged
rethab merged 3 commits into
mainfrom
fix/issue-885
Jul 12, 2026
Merged

Add --raw flag to project list command#3
rethab merged 3 commits into
mainfrom
fix/issue-885

Conversation

@rethab

@rethab rethab commented Jul 12, 2026

Copy link
Copy Markdown
Owner

Adds a --raw flag to jira project list that prints the raw JSON output instead of the rendered table view, matching the existing --raw behavior already available on jira issue list.

Addresses ankitpokhrel#885.

rethab added 2 commits July 12, 2026 08:47
Mirrors the existing jira issue list --raw behavior so project list
can also emit raw JSON output instead of the rendered table, useful
for scripting and piping into other tools.
…-raw

Marshalling []*jira.Project back to JSON only surfaced the four fields
the struct models, which are exactly the four the table already prints.
A caller scripting against the output got no project id or type key,
so --raw was no more useful than the rendered view.

Pass the response body through untouched instead, which is what --raw
already means for issue view.
@rethab
rethab merged commit f5407e3 into main Jul 12, 2026
1 check passed
@rethab
rethab deleted the fix/issue-885 branch July 12, 2026 06:53
rethab added a commit that referenced this pull request Aug 5, 2026
Adds a --raw flag to jira project list that prints the raw JSON output
instead of the rendered table view, matching the existing --raw behavior
already available on jira issue list.

Addresses ankitpokhrel#885.
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.

1 participant