wallix / awless

A Mighty CLI for AWS
http://awless.io/
Apache License 2.0
4.98k stars 263 forks source link

Exit with a status code greather than 0 when the `--local` flag is used but no data is found #130

Closed edubxb closed 7 years ago

edubxb commented 7 years ago

Would be nice if awless will return an exit code greater than 0 when the --local flag is used but no data is found, p.e.:

awsless show --local <instance id>

so will be easy to check if the command returns no data when is used in scripts.

Currently the only way is redirecting the stderr to /dev/null and then check if there's no output in stdout.

IMHO checking status code is more elegant.

simcap commented 7 years ago

Consistent code status is paramount! Thanks for spotting this one. We will fix that.

edubxb commented 7 years ago

Works, thanks!