pastel
pastel copied to clipboard
π¨ Next.js-like framework for CLIs made with Ink
I ran into an issue where when using [`useInput`](https://github.com/vadimdemedes/ink#useinputinputhandler-options) or [ink-select-input](https://github.com/vadimdemedes/ink-select-input); pressing `ctrl+c` exits the app but not the process. This is probably because our app has live connections. Is...
It always exits with 0, even if you give it an error. It also prints the error. The only way to disable it is to give it a dummy Error...
Itβs not entirely obvious when/how the program exits. When rerendering stops and there are no more timeouts or pending async stuff? (from [Twitter conversation](https://twitter.com/vadimdemedes/status/1127006027805671424))
It took me way too long to realise that you can do this in your `package.json`: ```json "name": "@org/package-name", "bin": { "cli-name": "./bin/cli.js" } ``` So it would help to...