Skip to content

Commit a947bfb

Browse files
authored
Add 'user:' prefix to whoami command output for consistency (#3267)
1 parent ed740c3 commit a947bfb

File tree

1 file changed

+1
-1
lines changed
  • src/huggingface_hub/commands

1 file changed

+1
-1
lines changed

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(info["name"])
198+
print(ANSI.bold("user: "), 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)