Merge branch 'main' into zhi-2026-04-18

This commit is contained in:
h z
2026-05-01 07:25:35 +00:00
7 changed files with 83 additions and 19 deletions

View File

@@ -347,6 +347,11 @@ func handleUserCommand(subCmd string, args []string) {
output.Error("usage: hf user delete <username>")
}
commands.RunUserDelete(filtered[0], tokenFlag)
case "reset-apikey":
if len(filtered) < 1 {
output.Error("usage: hf user reset-apikey <username>")
}
commands.RunUserResetAPIKey(filtered[0], tokenFlag, accMgrTokenFlag)
default:
output.Errorf("hf user %s is not implemented yet", subCmd)
}