Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Commit

Permalink
fix: skip tty check via env var in supertable (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
RasPhilCo committed Feb 26, 2020
1 parent 33089da commit ea88346
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/styled/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ class Table<T extends object> {
// truncation logic
const shouldShorten = () => {
// don't shorten if full mode
if (options['no-truncate'] || !process.stdout.isTTY) return
if (options['no-truncate'] || (!process.stdout.isTTY && !process.env.CLI_UX_SKIP_TTY_CHECK)) return

// don't shorten if there is enough screen width
const dataMaxWidth = _.sumBy(columns, c => c.width!)
Expand Down

0 comments on commit ea88346

Please sign in to comment.