aboutsummaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rw-r--r--commands/commands.go2
-rw-r--r--commands/ls.go (renamed from commands/list.go)6
2 files changed, 4 insertions, 4 deletions
diff --git a/commands/commands.go b/commands/commands.go
index f4e9aef9..7c4e3ab9 100644
--- a/commands/commands.go
+++ b/commands/commands.go
@@ -23,7 +23,7 @@ func (cmd *Command) Run(repo repository.Repo, args []string) error {
// CommandMap defines all of the available (sub)commands.
var CommandMap = map[string]*Command{
- "list": listCmd,
+ "ls": lsCmd,
"new": newCmd,
"pull": pullCmd,
"push": pushCmd,
diff --git a/commands/list.go b/commands/ls.go
index 87c417cf..2101dc84 100644
--- a/commands/list.go
+++ b/commands/ls.go
@@ -6,7 +6,7 @@ import (
"github.com/MichaelMure/git-bug/repository"
)
-func RunListBug(repo repository.Repo, args []string) error {
+func RunLsBug(repo repository.Repo, args []string) error {
refs, err := repo.ListRefs(b.BugsRefPattern)
if err != nil {
@@ -28,9 +28,9 @@ func RunListBug(repo repository.Repo, args []string) error {
return nil
}
-var listCmd = &Command{
+var lsCmd = &Command{
Usage: func(arg0 string) {
fmt.Printf("Usage: %s\n", arg0)
},
- RunMethod: RunListBug,
+ RunMethod: RunLsBug,
}