mirror of
				https://gitea.com/gitea/tea.git
				synced 2025-10-31 01:05:26 +01:00 
			
		
		
		
	fix comments and descriptions
This commit is contained in:
		| @@ -19,8 +19,8 @@ import ( | |||||||
| // CmdIssues represents to login a gitea server. | // CmdIssues represents to login a gitea server. | ||||||
| var CmdIssues = cli.Command{ | var CmdIssues = cli.Command{ | ||||||
| 	Name:        "issues", | 	Name:        "issues", | ||||||
| 	Usage:       "Log in a Gitea server", | 	Usage:       "Operate with issues of the repository", | ||||||
| 	Description: `Log in a Gitea server`, | 	Description: `Operate with issues of the repository`, | ||||||
| 	Action:      runIssues, | 	Action:      runIssues, | ||||||
| 	Subcommands: []cli.Command{ | 	Subcommands: []cli.Command{ | ||||||
| 		CmdIssuesList, | 		CmdIssuesList, | ||||||
| @@ -29,19 +29,19 @@ var CmdIssues = cli.Command{ | |||||||
| 	Flags: []cli.Flag{ | 	Flags: []cli.Flag{ | ||||||
| 		cli.StringFlag{ | 		cli.StringFlag{ | ||||||
| 			Name:  "login, l", | 			Name:  "login, l", | ||||||
| 			Usage: "Indicate one login", | 			Usage: "Indicate one login, optional when inside a gitea repository", | ||||||
| 		}, | 		}, | ||||||
| 		cli.StringFlag{ | 		cli.StringFlag{ | ||||||
| 			Name:  "repo, r", | 			Name:  "repo, r", | ||||||
| 			Usage: "Indicate one repository", | 			Usage: "Indicate one repository, optional when inside a gitea repository", | ||||||
| 		}, | 		}, | ||||||
| 	}, | 	}, | ||||||
| } | } | ||||||
|  |  | ||||||
| var CmdIssuesList = cli.Command{ | var CmdIssuesList = cli.Command{ | ||||||
| 	Name:        "ls", | 	Name:        "ls", | ||||||
| 	Usage:       "Log in a Gitea server", | 	Usage:       "List issues of the repository", | ||||||
| 	Description: `Log in a Gitea server`, | 	Description: `List issues of the repository`, | ||||||
| 	Action:      runIssuesList, | 	Action:      runIssuesList, | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -31,8 +31,8 @@ var CmdLogin = cli.Command{ | |||||||
| // CmdLogin represents to login a gitea server. | // CmdLogin represents to login a gitea server. | ||||||
| var cmdLoginAdd = cli.Command{ | var cmdLoginAdd = cli.Command{ | ||||||
| 	Name:        "add", | 	Name:        "add", | ||||||
| 	Usage:       "Log in a Gitea server", | 	Usage:       "Add a Login of a Gitea server", | ||||||
| 	Description: `Log in a Gitea server`, | 	Description: `Add a Login of a Gitea server`, | ||||||
| 	Flags: []cli.Flag{ | 	Flags: []cli.Flag{ | ||||||
| 		cli.StringFlag{ | 		cli.StringFlag{ | ||||||
| 			Name:  "name, n", | 			Name:  "name, n", | ||||||
| @@ -115,8 +115,8 @@ func runLoginAdd(ctx *cli.Context) error { | |||||||
| // CmdLogin represents to login a gitea server. | // CmdLogin represents to login a gitea server. | ||||||
| var cmdLoginList = cli.Command{ | var cmdLoginList = cli.Command{ | ||||||
| 	Name:        "ls", | 	Name:        "ls", | ||||||
| 	Usage:       "Log in a Gitea server", | 	Usage:       "List all Logins of Gitea servers", | ||||||
| 	Description: `Log in a Gitea server`, | 	Description: `List all Logins of Gitea servers`, | ||||||
| 	Action:      runLoginList, | 	Action:      runLoginList, | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -16,17 +16,17 @@ import ( | |||||||
| // CmdPulls represents to login a gitea server. | // CmdPulls represents to login a gitea server. | ||||||
| var CmdPulls = cli.Command{ | var CmdPulls = cli.Command{ | ||||||
| 	Name:        "pulls", | 	Name:        "pulls", | ||||||
| 	Usage:       "Log in a Gitea server", | 	Usage:       "Operate with pulls of the repository", | ||||||
| 	Description: `Log in a Gitea server`, | 	Description: `Operate with pulls of the repository`, | ||||||
| 	Action:      runPulls, | 	Action:      runPulls, | ||||||
| 	Flags: []cli.Flag{ | 	Flags: []cli.Flag{ | ||||||
| 		cli.StringFlag{ | 		cli.StringFlag{ | ||||||
| 			Name:  "login, l", | 			Name:  "login, l", | ||||||
| 			Usage: "Indicate one login", | 			Usage: "Indicate one login, optional when inside a gitea repository", | ||||||
| 		}, | 		}, | ||||||
| 		cli.StringFlag{ | 		cli.StringFlag{ | ||||||
| 			Name:  "repo, r", | 			Name:  "repo, r", | ||||||
| 			Usage: "Indicate one repository", | 			Usage: "Indicate one repository, optional when inside a gitea repository", | ||||||
| 		}, | 		}, | ||||||
| 	}, | 	}, | ||||||
| } | } | ||||||
|   | |||||||
| @@ -18,8 +18,8 @@ import ( | |||||||
| // CmdReleases represents to login a gitea server. | // CmdReleases represents to login a gitea server. | ||||||
| var CmdReleases = cli.Command{ | var CmdReleases = cli.Command{ | ||||||
| 	Name:        "releases", | 	Name:        "releases", | ||||||
| 	Usage:       "Log in a Gitea server", | 	Usage:       "Operate with releases of the repository", | ||||||
| 	Description: `Log in a Gitea server`, | 	Description: `Operate with releases of the repository`, | ||||||
| 	Action:      runReleases, | 	Action:      runReleases, | ||||||
| 	Subcommands: []cli.Command{ | 	Subcommands: []cli.Command{ | ||||||
| 		CmdReleaseCreate, | 		CmdReleaseCreate, | ||||||
| @@ -27,11 +27,11 @@ var CmdReleases = cli.Command{ | |||||||
| 	Flags: []cli.Flag{ | 	Flags: []cli.Flag{ | ||||||
| 		cli.StringFlag{ | 		cli.StringFlag{ | ||||||
| 			Name:  "login, l", | 			Name:  "login, l", | ||||||
| 			Usage: "Indicate one login", | 			Usage: "Indicate one login, optional when inside a gitea repository", | ||||||
| 		}, | 		}, | ||||||
| 		cli.StringFlag{ | 		cli.StringFlag{ | ||||||
| 			Name:  "repo, r", | 			Name:  "repo, r", | ||||||
| 			Usage: "Indicate one repository", | 			Usage: "Indicate one repository, optional when inside a gitea repository", | ||||||
| 		}, | 		}, | ||||||
| 	}, | 	}, | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Lunny Xiao
					Lunny Xiao