Common subcommand naming scheme #208

Merged
6543 merged 5 commits from noerw/tea:issue-37-cmd-naming-scheme into master 2020-10-02 15:46:53 +00:00
6 changed files with 6 additions and 0 deletions
Showing only changes of commit c2d504e538 - Show all commits

View File

@ -19,6 +19,7 @@ import (
// CmdIssuesList represents a sub command of issues to list issues
var CmdIssuesList = cli.Command{
Name: "ls",
Aliases: []string{"list"},
Usage: "List issues of the repository",
Description: `List issues of the repository`,
Action: RunIssuesList,

View File

@ -18,6 +18,7 @@ import (
// CmdLoginList represents to login a gitea server.
var CmdLoginList = cli.Command{
Name: "ls",
Aliases: []string{"list"},
Usage: "List Gitea logins",
Description: `List Gitea logins`,
Action: runLoginList,

View File

@ -19,6 +19,7 @@ import (
// CmdMilestonesList represents a sub command of milestones to list milestones
var CmdMilestonesList = cli.Command{
Name: "ls",
Aliases: []string{"list"},
Usage: "List milestones of the repository",
Description: `List milestones of the repository`,
Action: RunMilestonesList,

View File

@ -19,6 +19,7 @@ import (
// CmdPullsList represents a sub command of issues to list pulls
var CmdPullsList = cli.Command{
Name: "ls",
Aliases: []string{"list"},
Usage: "List pull requests of the repository",
Description: `List pull requests of the repository`,
Action: RunPullsList,

View File

@ -19,6 +19,7 @@ import (
// CmdReleaseList represents a sub command of Release to list releases
var CmdReleaseList = cli.Command{
Name: "ls",
Aliases: []string{"list"},
Usage: "List Releases",
Description: "List Releases",
Action: RunReleasesList,

View File

@ -20,6 +20,7 @@ import (
// CmdReposList represents a sub command of repos to list them
var CmdReposList = cli.Command{
Name: "ls",
Aliases: []string{"list"},
Usage: "List available repositories",
Description: `List available repositories`,
Action: RunReposList,