| 49 | const getSpinnerFromState = inputState => inputState === state ? chalk.gray.dim(spinner.frame()) : ' '; |
| 50 | |
| 51 | const logError = error => { |
| 52 | if (cli.flags.json) { |
| 53 | console.error(JSON.stringify({error})); |
| 54 | } else { |
| 55 | console.error(logSymbols.error, error); |
| 56 | } |
| 57 | }; |
| 58 | |
| 59 | function render() { |
| 60 | if (cli.flags.json) { |