list --> ls, silly !

Michael Muré created

Change summary

commands/commands.go | 2 +-
commands/ls.go       | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)

Detailed changes

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,

commands/list.go → 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,
 }