fix(discussion list): only print remaining items in tty mode
Signed-off-by: Babak K. Shandiz <babakks@github.com>
This commit is contained in:
parent
835d7f3a48
commit
2d1b1a79bf
1 changed files with 1 additions and 2 deletions
|
|
@ -346,8 +346,7 @@ func printDiscussions(opts *ListOptions, discussions []client.Discussion, totalC
|
|||
|
||||
_ = tp.Render()
|
||||
|
||||
remaining := totalCount - len(discussions)
|
||||
if remaining > 0 {
|
||||
if remaining := totalCount - len(discussions); isTerminal && remaining > 0 {
|
||||
fmt.Fprintf(opts.IO.Out, cs.Muted("And %d more\n"), remaining)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue