Skip to content

Commit ddfeff2

Browse files
update hf auth whoami output (#3274)
1 parent c1cbe55 commit ddfeff2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/huggingface_hub/cli/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def run(self):
200200
exit()
201201
try:
202202
info = self._api.whoami(token)
203-
print(info["name"])
203+
print(ANSI.bold("user: "), info["name"])
204204
orgs = [org["name"] for org in info["orgs"]]
205205
if orgs:
206206
print(ANSI.bold("orgs: "), ",".join(orgs))

src/huggingface_hub/commands/user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def run(self):
195195
exit()
196196
try:
197197
info = self._api.whoami(token)
198-
print(ANSI.bold("user: "), info["name"])
198+
print(info["name"])
199199
orgs = [org["name"] for org in info["orgs"]]
200200
if orgs:
201201
print(ANSI.bold("orgs: "), ",".join(orgs))

0 commit comments

Comments
 (0)