Skip to content
This repository was archived by the owner on May 24, 2019. It is now read-only.

Commit 247a436

Browse files
committed
fix comments and descriptions
1 parent 4de0b04 commit 247a436

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

cmd/issues.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ import (
1919
// CmdIssues represents to login a gitea server.
2020
var CmdIssues = cli.Command{
2121
Name: "issues",
22-
Usage: "Log in a Gitea server",
23-
Description: `Log in a Gitea server`,
22+
Usage: "Operate with issues of the repository",
23+
Description: `Operate with issues of the repository`,
2424
Action: runIssues,
2525
Subcommands: []cli.Command{
2626
CmdIssuesList,
@@ -29,19 +29,19 @@ var CmdIssues = cli.Command{
2929
Flags: []cli.Flag{
3030
cli.StringFlag{
3131
Name: "login, l",
32-
Usage: "Indicate one login",
32+
Usage: "Indicate one login, optional when inside a gitea repository",
3333
},
3434
cli.StringFlag{
3535
Name: "repo, r",
36-
Usage: "Indicate one repository",
36+
Usage: "Indicate one repository, optional when inside a gitea repository",
3737
},
3838
},
3939
}
4040

4141
var CmdIssuesList = cli.Command{
4242
Name: "ls",
43-
Usage: "Log in a Gitea server",
44-
Description: `Log in a Gitea server`,
43+
Usage: "List issues of the repository",
44+
Description: `List issues of the repository`,
4545
Action: runIssuesList,
4646
}
4747

cmd/login.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ var CmdLogin = cli.Command{
3131
// CmdLogin represents to login a gitea server.
3232
var cmdLoginAdd = cli.Command{
3333
Name: "add",
34-
Usage: "Log in a Gitea server",
35-
Description: `Log in a Gitea server`,
34+
Usage: "Add a Login of a Gitea server",
35+
Description: `Add a Login of a Gitea server`,
3636
Flags: []cli.Flag{
3737
cli.StringFlag{
3838
Name: "name, n",
@@ -115,8 +115,8 @@ func runLoginAdd(ctx *cli.Context) error {
115115
// CmdLogin represents to login a gitea server.
116116
var cmdLoginList = cli.Command{
117117
Name: "ls",
118-
Usage: "Log in a Gitea server",
119-
Description: `Log in a Gitea server`,
118+
Usage: "List all Logins of Gitea servers",
119+
Description: `List all Logins of Gitea servers`,
120120
Action: runLoginList,
121121
}
122122

cmd/pulls.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ import (
1616
// CmdPulls represents to login a gitea server.
1717
var CmdPulls = cli.Command{
1818
Name: "pulls",
19-
Usage: "Log in a Gitea server",
20-
Description: `Log in a Gitea server`,
19+
Usage: "Operate with pulls of the repository",
20+
Description: `Operate with pulls of the repository`,
2121
Action: runPulls,
2222
Flags: []cli.Flag{
2323
cli.StringFlag{
2424
Name: "login, l",
25-
Usage: "Indicate one login",
25+
Usage: "Indicate one login, optional when inside a gitea repository",
2626
},
2727
cli.StringFlag{
2828
Name: "repo, r",
29-
Usage: "Indicate one repository",
29+
Usage: "Indicate one repository, optional when inside a gitea repository",
3030
},
3131
},
3232
}

cmd/releases.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,20 @@ import (
1818
// CmdReleases represents to login a gitea server.
1919
var CmdReleases = cli.Command{
2020
Name: "releases",
21-
Usage: "Log in a Gitea server",
22-
Description: `Log in a Gitea server`,
21+
Usage: "Operate with releases of the repository",
22+
Description: `Operate with releases of the repository`,
2323
Action: runReleases,
2424
Subcommands: []cli.Command{
2525
CmdReleaseCreate,
2626
},
2727
Flags: []cli.Flag{
2828
cli.StringFlag{
2929
Name: "login, l",
30-
Usage: "Indicate one login",
30+
Usage: "Indicate one login, optional when inside a gitea repository",
3131
},
3232
cli.StringFlag{
3333
Name: "repo, r",
34-
Usage: "Indicate one repository",
34+
Usage: "Indicate one repository, optional when inside a gitea repository",
3535
},
3636
},
3737
}

0 commit comments

Comments
 (0)