Behaviour
Maybe something like this:
$ arc whoami Logged in as useralias (User Name)
Benefits
Standard utility on unix systems. Plus it helps to verify whether you're properly logged in and everything is working okay.
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.
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": "https://secure.phabricator.com/file/data/ll44rp735qbetkcwgizb/PHID-FILE-n4yrskvijktb4pz5duqr/facebook-profile.jpg", "phid": "PHID-USER-lgbuqrsim4oysksuxv5b", "realName": "Aviv Eyal", "roles": [ "verified" ], "uri": "https://secure.phabricator.com/p/avivey/", "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)
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.