rahulpsd18 / cognito-backup-restore

AIO Tool for backing up and restoring AWS Cognito User Pools
MIT License
196 stars 63 forks source link

Fix empty output when there are errors in CI (no tty) #36

Closed russelldavis closed 2 years ago

russelldavis commented 3 years ago

The old version of the 'ora' library had a bug where all output (even error messages) would be swallowed when running with no tty (as is the case when running in, e.g., a CI environment, or even when just redirecting the output).

See https://github.com/sindresorhus/ora/pull/78

To see this, you can run the following, making sure you do not have any of the AWS env vars set (so the error will be triggered):

node build/cli/cli.js backup --pool all --use-env-vars --directory tmp &> out
russelldavis commented 2 years ago

Closing since this repo is no longer maintained