diff options
author | Michael Muré <batolettre@gmail.com> | 2018-07-15 09:26:11 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-07-15 09:26:11 +0200 |
commit | c2774dcf23d94a187f6679395e373c6fa1c627e1 (patch) | |
tree | 7067b121dd856f4d9c8461b72cf50bbdde270f3c /commands/ls.go | |
parent | cbff4b8aba9bc5207d07523181f2be8e94ece881 (diff) | |
download | git-bug-c2774dcf23d94a187f6679395e373c6fa1c627e1.tar.gz |
add a "comment" command
Diffstat (limited to 'commands/ls.go')
-rw-r--r-- | commands/ls.go | 6 |
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, } |