From dfefba09ee706d2804969dc751c57a77f0d77bbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Mur=C3=A9?= Date: Sun, 15 Jul 2018 01:22:22 +0200 Subject: [PATCH] list --> ls, silly ! --- commands/commands.go | 2 +- commands/{list.go => ls.go} | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) rename commands/{list.go => ls.go} (81%) diff --git a/commands/commands.go b/commands/commands.go index f4e9aef9fd50007bfe442c4f76e2992196e88af9..7c4e3ab9b3e1dc2a7e9fb7c3ed050b40f06ec22f 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 similarity index 81% rename from commands/list.go rename to commands/ls.go index 87c417cf9bd7a2b65e57703defce84c26500bdad..2101dc84ea23b12439a0462c22b2bb5d14e1d146 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, }