Fix cli "Before" handling (#35797)

Regression of #34973

Fix #35796
This commit is contained in:
wxiaoguang
2025-11-01 02:12:03 +08:00
committed by GitHub
parent ef90befef1
commit de70cd3853
5 changed files with 55 additions and 16 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ import (
var CmdKeys = &cli.Command{
Name: "keys",
Usage: "(internal) Should only be called by SSH server",
Hidden: true, // internal commands shouldn't not be visible
Hidden: true, // internal commands shouldn't be visible
Description: "Queries the Gitea database to get the authorized command for a given ssh key fingerprint",
Before: PrepareConsoleLoggerLevel(log.FATAL),
Action: runKeys,