aboutsummaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-07-15 01:22:22 +0200
committerMichael Muré <batolettre@gmail.com>2018-07-15 01:23:21 +0200
commitdfefba09ee706d2804969dc751c57a77f0d77bbf (patch)
tree53468a7de4dd91d6e85cd6e11be87d9e76e5778e /commands
parentfcac83257a7d3a47cc78fad21fef57c35799ff63 (diff)
downloadgit-bug-dfefba09ee706d2804969dc751c57a77f0d77bbf.tar.gz
list --> ls, silly !
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,
}