Page MenuHomePhabricator

'arc whoami' should show the currently logged in user.
Closed, WontfixPublic



Maybe something like this:

$ arc whoami
Logged in as useralias (User Name)

Standard utility on unix systems. Plus it helps to verify whether you're properly logged in and everything is working okay.

Revisions and Commits

Event Timeline

skyronic claimed this task.
skyronic raised the priority of this task from to Needs Triage.
skyronic updated the task description. (Show Details)
skyronic added a project: Arcanist.

If this is pursued, it'd be handy if it showed the URL as well.

the conduit call is already there, so you can do something like

$ arc alias whoami '!echo {} | arc call-conduit user.whoami | python -m json.tool'
$ arc whoami
    "error": null,
    "errorMessage": null,
    "response": {
        "image": "",
        "phid": "PHID-USER-lgbuqrsim4oysksuxv5b",
        "realName": "Aviv Eyal",
        "roles": [
        "uri": "",
        "userName": "avivey"

or if you have something like jkid installed:

$ arc alias whoami '!echo {} | arc call-conduit user.whoami | jkid -q response realName'
$ arc whoami
"Aviv Eyal"

(this is not a vote on the need to add it as a built-in, just a hint on addressing the immediate issue)

epriestley added a subscriber: epriestley.

See discussion in D7358. We might implement this eventually, but I'd like to see a stronger and more concrete need for it which isn't reasonably resolvable via Conduit.