aboutsummaryrefslogtreecommitdiffstats
path: root/commands/ls.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-07-15 09:26:11 +0200
committerMichael Muré <batolettre@gmail.com>2018-07-15 09:26:11 +0200
commitc2774dcf23d94a187f6679395e373c6fa1c627e1 (patch)
tree7067b121dd856f4d9c8461b72cf50bbdde270f3c /commands/ls.go
parentcbff4b8aba9bc5207d07523181f2be8e94ece881 (diff)
downloadgit-bug-c2774dcf23d94a187f6679395e373c6fa1c627e1.tar.gz
add a "comment" command
Diffstat (limited to 'commands/ls.go')
-rw-r--r--commands/ls.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/commands/ls.go b/commands/ls.go
index 631afb5e..1e001ddb 100644
--- a/commands/ls.go
+++ b/commands/ls.go
@@ -6,7 +6,7 @@ import (
"github.com/MichaelMure/git-bug/repository"
)
-func RunLsBug(repo repository.Repo, args []string) error {
+func runLsBug(repo repository.Repo, args []string) error {
refs, err := repo.ListRefs(b.BugsRefPattern)
if err != nil {
@@ -30,7 +30,7 @@ func RunLsBug(repo repository.Repo, args []string) error {
var lsCmd = &Command{
Usage: func(arg0 string) {
- fmt.Printf("Usage: %s\n", arg0)
+ fmt.Printf("Usage: %s ls\n", arg0)
},
- RunMethod: RunLsBug,
+ RunMethod: runLsBug,
}