diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-12-15 23:49:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-15 15:49:01 +0000 |
commit | 047c69bd85bc5579ce6f352d7edf7fb950d84b80 (patch) | |
tree | 0ae581d24c0fcbeb97d943b98835d7b876affedc /cmd/keys.go | |
parent | 3849fd2ac2163b109f9dc1e873ffb9bc8f53c63b (diff) | |
download | gitea-047c69bd85bc5579ce6f352d7edf7fb950d84b80.tar.gz gitea-047c69bd85bc5579ce6f352d7edf7fb950d84b80.zip |
Improve CLI code and descriptions (#28482)
* Close #28444
* Actually, it doesn't need to use that trick because it looks like it
is not necessary, no user really needs it
* Remove the hidden (legacy) "doctor" subcommand and update documents
* Fix "actions" usage
![image](https://github.com/go-gitea/gitea/assets/2114189/3c2b34a7-4f92-4a6c-96fd-9505e413d4ec)
Diffstat (limited to 'cmd/keys.go')
-rw-r--r-- | cmd/keys.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cmd/keys.go b/cmd/keys.go index b846782529..9d5278f109 100644 --- a/cmd/keys.go +++ b/cmd/keys.go @@ -16,10 +16,11 @@ import ( // CmdKeys represents the available keys sub-command var CmdKeys = &cli.Command{ - Name: "keys", - Usage: "This command queries the Gitea database to get the authorized command for a given ssh key fingerprint", - Before: PrepareConsoleLoggerLevel(log.FATAL), - Action: runKeys, + Name: "keys", + Usage: "(internal) Should only be called by SSH server", + Description: "Queries the Gitea database to get the authorized command for a given ssh key fingerprint", + Before: PrepareConsoleLoggerLevel(log.FATAL), + Action: runKeys, Flags: []cli.Flag{ &cli.StringFlag{ Name: "expected", |