diff options
author | Michael Muré <batolettre@gmail.com> | 2018-07-12 12:44:46 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-07-12 12:44:46 +0200 |
commit | c498674718608a1171a4fcef6f26184df7d5fa7b (patch) | |
tree | 9cc53ea07b61d52b12cd5fa3367b25d04bebc150 /commands/commands.go | |
parent | d0443659123f912e9385e27efebe4b7da65aa2f6 (diff) | |
download | git-bug-c498674718608a1171a4fcef6f26184df7d5fa7b.tar.gz |
add the new bug command with a very primitive bug datastructure
Diffstat (limited to 'commands/commands.go')
-rw-r--r-- | commands/commands.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/commands/commands.go b/commands/commands.go index 4f892fdd..64b2cbc1 100644 --- a/commands/commands.go +++ b/commands/commands.go @@ -6,6 +6,7 @@ import ( ) const bugsRefPattern = "refs/bugs/*" +const messageFilename = "BUG_MESSAGE_EDITMSG" // Command represents the definition of a single command. type Command struct { @@ -23,6 +24,7 @@ func (cmd *Command) Run(repo repository.Repo, args []string) error { // CommandMap defines all of the available (sub)commands. var CommandMap = map[string]*Command{ + "new": newCmd, "pull": pullCmd, "push": pushCmd, |