From d3893a5e04868fb99df28c8da62a0ee59d7e9064 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Mon, 16 Jul 2018 15:21:21 +0200 Subject: rework the commands thing and add a "commands" command to list all commands --- commands/pull.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'commands/pull.go') diff --git a/commands/pull.go b/commands/pull.go index b408c285..dbff4fb1 100644 --- a/commands/pull.go +++ b/commands/pull.go @@ -25,8 +25,7 @@ func runPull(repo repository.Repo, args []string) error { // showCmd defines the "push" subcommand. var pullCmd = &Command{ - Usage: func(arg0 string) { - fmt.Printf("Usage: %s pull []\n", arg0) - }, - RunMethod: runPull, + Description: "Pull bugs update from a git remote", + Usage: "[]", + RunMethod: runPull, } -- cgit v1.2.3