fix: --plain flag should imply --table in sprint list#971
Open
YoanWai wants to merge 1 commit intoankitpokhrel:mainfrom
Open
fix: --plain flag should imply --table in sprint list#971YoanWai wants to merge 1 commit intoankitpokhrel:mainfrom
YoanWai wants to merge 1 commit intoankitpokhrel:mainfrom
Conversation
When using `jira sprint list --plain`, the --plain flag was ignored because only --table was checked in the TUI vs table mode decision. Adding plain to the condition so --plain bypasses the TUI explorer and renders a plain table, matching user expectations. Closes ankitpokhrel#968
7162376 to
75ee9be
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
jira sprint list --plain, the--plainflag was ignored because only--tablewas checked in the TUI vs table mode decisionplainto the branching condition insprintExplorerView()so that--plainbypasses the TUI explorer and renders a plain tableDetails
In
internal/cmd/sprint/list/list.go, the condition that decides between TUI explorer and table output was:Changed to:
The
plainvariable was already read from flags earlier in the same function (line 215) and passed toview.DisplayFormat, so this is a minimal, safe addition.Closes #968