aboutsummaryrefslogtreecommitdiffstats
path: root/commands/new.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/new.go
parentcbff4b8aba9bc5207d07523181f2be8e94ece881 (diff)
downloadgit-bug-c2774dcf23d94a187f6679395e373c6fa1c627e1.tar.gz
add a "comment" command
Diffstat (limited to 'commands/new.go')
-rw-r--r--commands/new.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/commands/new.go b/commands/new.go
index d2e1ed59..2db95291 100644
--- a/commands/new.go
+++ b/commands/new.go
@@ -17,7 +17,7 @@ var (
newMessage = newFlagSet.String("m", "", "Provide a message to describe the issue")
)
-func RunNewBug(repo repository.Repo, args []string) error {
+func runNewBug(repo repository.Repo, args []string) error {
newFlagSet.Parse(args)
args = newFlagSet.Args()
@@ -45,7 +45,6 @@ func RunNewBug(repo repository.Repo, args []string) error {
}
}
- // Note: this is very primitive for now
author, err := bug.GetUser(repo)
if err != nil {
return err
@@ -71,5 +70,5 @@ var newCmd = &Command{
fmt.Printf("Usage: %s new <title> [<option>...]\n\nOptions:\n", arg0)
newFlagSet.PrintDefaults()
},
- RunMethod: RunNewBug,
+ RunMethod: runNewBug,
}