-
Notifications
You must be signed in to change notification settings - Fork 395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(cli): format dataset copy output with console-table-printer #3303
feat(cli): format dataset copy output with console-table-printer #3303
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
86e1fae
to
b7c6250
Compare
table(...args) { | ||
console.table(...args) | ||
}, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that we are using console-table-printer
, I don't think this change is needed?
Returns table of jobs with: | ||
- jobId | ||
- current state - pending, completed, failed, terminating, terminated | ||
- History - With/Without history |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- History - With/Without history | |
- history - whether or not dataset copy included document history |
} | ||
} | ||
|
||
function convertTimestampToDaysHoursMinsSecs(timePassedInSeconds) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can I suggest using shorthand formatting for these, to compress the table some more? Eg instead of 3 days 22 hours 32 minutes 6 seconds
it would be 3d 22h 32m 6s
} | ||
|
||
if (response && response.length > 0) { | ||
const p = new Table({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think table
would be a more descriptive variable name
b7c6250
to
2eed1ac
Compare
143e0fe
to
7275b86
Compare
Ah, sorry - did not have that context. |
2eed1ac
to
3ff9735
Compare
a488dff
to
61cf425
Compare
7275b86
to
c71dc3a
Compare
Description
Change the formatting of the
dataset jobs list
output.Introduces a new npm dependency console-table-printer
With this library we are able to get rid of the index column and the quotes around the values in the table, which are present in the solution with
console.table()