cli-ux
cli-ux copied to clipboard
CLI IO utilities
### The cli.table now has a line below every header, how can i disable it? I cant find anything in the documentation about it. Seems to be added in the...
Why: So that making part of a line a clickable url is possible. Related to #158
To fix, I've pinned my dep to 4.9.3 for the time being. I see it specified as a devDependency. It could be that it was omitted to put it as...
When there is any full-width text in the table header , the column size would be wrong. Before: Fixed:
``` const data = [{ name: 'bob', age: 32, }]; console.log(JSON.stringify(data, undefined, 2)); cli.table(data, { name: {}, age: {}, }, {output: 'json'}); ``` Output: ``` [ { "name": "bob", "age":...
It seems that flush should be checking the result of process.stdout.write to see if it was already flushed or not. For example ``` async function flush() { const p =...
Unlike `cli.action`, the basic logging commands like `cli.log`, `cli.info`, `cli.debug`, `cli.url` only send text to `stdout`. There is no option to send these messages to `stderr`. Using `stdout` for these...
running one of the examples from the cli.progress repo results in each update to the bar graph showing up as a separate line instead of updating the existing line. ```...
It's common in CLIs to have a yes/no prompt with a default, i.e. `(Y/n)` implies that just pressing enter will default to "yes". It would be nice to have an...
Added documentation for `{required: false}` in `cli.prompt` I was looking for that and couldn't find it. Saw the PR which added feature, and then later added it to the docs.