fix(cmd): Update CmdRepos description and usage in repos.go (#946)

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-on: https://gitea.com/gitea/tea/pulls/946
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Nicolas <bircni@icloud.com>
Co-committed-by: Nicolas <bircni@icloud.com>
This commit is contained in:
Nicolas
2026-04-20 19:50:28 +00:00
committed by Lunny Xiao
parent 783ac7684a
commit a58c35c3e2
3 changed files with 6 additions and 4 deletions

2
.gitignore vendored
View File

@@ -17,3 +17,5 @@ dist/
.direnv/ .direnv/
result result
result-* result-*
.DS_Store

View File

@@ -15,13 +15,13 @@ import (
"github.com/urfave/cli/v3" "github.com/urfave/cli/v3"
) )
// CmdRepos represents to login a gitea server. // CmdRepos represents the command to manage repositories.
var CmdRepos = cli.Command{ var CmdRepos = cli.Command{
Name: "repos", Name: "repos",
Aliases: []string{"repo"}, Aliases: []string{"repo"},
Category: catEntities, Category: catEntities,
Usage: "Show repository details", Usage: "Manage repositories",
Description: "Show repository details", Description: "Manage repositories",
ArgsUsage: "[<repo owner>/<repo name>]", ArgsUsage: "[<repo owner>/<repo name>]",
Action: runRepos, Action: runRepos,
Commands: []*cli.Command{ Commands: []*cli.Command{

View File

@@ -1065,7 +1065,7 @@ Delete users Organizations
## repos, repo ## repos, repo
Show repository details Manage repositories
**--fields, -f**="": Comma-separated list of fields to print. Available values: **--fields, -f**="": Comma-separated list of fields to print. Available values:
description,forks,id,name,owner,stars,ssh,updated,url,permission,type description,forks,id,name,owner,stars,ssh,updated,url,permission,type