auth:whoami should fail if not logged in #1149

Closed
listrophy opened this Issue Jul 22, 2014 · 2 comments

Projects

None yet

3 participants

@listrophy

There doesn't seem to be any way in the entire toolbelt to determine whether I'm logged in without triggering an interactive login.

I'd like for heroku auth:whoami to return with exit status > 0 when not logged in. The actual output in such a case is up to you.

Context: I'm writing a script that calls heroku config, and I'd like to provide a helpful error message.

@camstuart

Agreed. I'm trying to automate the login process, but if there is no current user logged in, an auth:login triggers. Which is a bit annoying

@dickeyxxx dickeyxxx closed this Jun 5, 2015
@dickeyxxx
Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment