Skip to content

Commit 7162376

Browse files
author
Yoan Wainmann
committed
fix: --plain flag should imply --table in sprint list
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 #968
1 parent 396933d commit 7162376

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/cmd/sprint/list/list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ func sprintExplorerView(sprintQuery *query.Sprint, flags query.FlagParser, board
258258
table, err := flags.GetBool("table")
259259
cmdutil.ExitIfError(err)
260260

261-
if table || tui.IsDumbTerminal() || tui.IsNotTTY() {
261+
if table || plain || tui.IsDumbTerminal() || tui.IsNotTTY() {
262262
cmdutil.ExitIfError(v.RenderInTable())
263263
} else {
264264
cmdutil.ExitIfError(v.Render())

0 commit comments

Comments
 (0)