Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion src/command/history/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,14 @@ export class List extends HistoryCommand implements LeafCommand {

return
}

const useColors = Boolean(process.stdout.isTTY)

const table = new Table({
head: ['Index', 'Timestamp', 'Reference', 'Postage stamp batch ID', 'File path', 'Upload type'],
style: {
head: ['green', 'bold'],
head: useColors ? ['green', 'bold'] : [],
border: useColors ? ['grey'] : [],
Comment on lines +31 to +32

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please cover the isTTY = false case with spec(s)?

},
wordWrap: true,
})
Expand Down
Loading