Exit codes

For scripting and CI:

CodeMeaning
0Success
1Usage error (bad flags, not a Rails app)
2Auth error (not logged in, expired token)
3Server error (build failed, deploy failed)
4Config error (not initialized)
5Timeout
130Cancelled (Ctrl-C)
# CI example hadoken deploy --yes --timeout 10m if [ $? -eq 3 ]; then echo "Deploy failed"; fi