aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--commands/bridge_auth_addtoken.go2
-rw-r--r--commands/bridge_auth_rm.go2
-rw-r--r--commands/bridge_pull.go2
-rw-r--r--commands/bridge_push.go2
-rw-r--r--commands/bridge_rm.go2
-rw-r--r--commands/commands.go2
-rw-r--r--commands/comment.go4
-rw-r--r--commands/comment_add.go4
-rw-r--r--commands/label.go4
-rw-r--r--commands/label_add.go8
-rw-r--r--commands/label_rm.go8
-rw-r--r--commands/ls-id.go2
-rw-r--r--commands/ls.go2
-rw-r--r--commands/pull.go2
-rw-r--r--commands/push.go2
-rw-r--r--commands/rm.go2
-rw-r--r--commands/select.go6
-rw-r--r--commands/show.go12
-rw-r--r--commands/status.go5
-rw-r--r--commands/status_close.go5
-rw-r--r--commands/status_open.go5
-rw-r--r--commands/title.go5
-rw-r--r--commands/title_edit.go4
-rw-r--r--commands/user.go12
-rw-r--r--commands/user_adopt.go2
-rw-r--r--doc/man/git-bug-bridge-auth-add-token.12
-rw-r--r--doc/man/git-bug-bridge-auth-rm.12
-rw-r--r--doc/man/git-bug-bridge-pull.12
-rw-r--r--doc/man/git-bug-bridge-push.12
-rw-r--r--doc/man/git-bug-bridge-rm.12
-rw-r--r--doc/man/git-bug-commands.12
-rw-r--r--doc/man/git-bug-comment-add.12
-rw-r--r--doc/man/git-bug-comment.12
-rw-r--r--doc/man/git-bug-label-add.12
-rw-r--r--doc/man/git-bug-label-rm.12
-rw-r--r--doc/man/git-bug-label.12
-rw-r--r--doc/man/git-bug-ls-id.12
-rw-r--r--doc/man/git-bug-ls.12
-rw-r--r--doc/man/git-bug-pull.12
-rw-r--r--doc/man/git-bug-push.12
-rw-r--r--doc/man/git-bug-rm.128
-rw-r--r--doc/man/git-bug-select.14
-rw-r--r--doc/man/git-bug-show.12
-rw-r--r--doc/man/git-bug-status-close.12
-rw-r--r--doc/man/git-bug-status-open.12
-rw-r--r--doc/man/git-bug-status.12
-rw-r--r--doc/man/git-bug-title-edit.12
-rw-r--r--doc/man/git-bug-title.12
-rw-r--r--doc/man/git-bug-user-adopt.12
-rw-r--r--doc/man/git-bug-user.12
-rw-r--r--doc/man/git-bug.12
-rw-r--r--doc/md/git-bug.md1
-rw-r--r--doc/md/git-bug_bridge_auth_add-token.md2
-rw-r--r--doc/md/git-bug_bridge_auth_rm.md2
-rw-r--r--doc/md/git-bug_bridge_pull.md2
-rw-r--r--doc/md/git-bug_bridge_push.md2
-rw-r--r--doc/md/git-bug_bridge_rm.md2
-rw-r--r--doc/md/git-bug_commands.md2
-rw-r--r--doc/md/git-bug_comment.md2
-rw-r--r--doc/md/git-bug_comment_add.md2
-rw-r--r--doc/md/git-bug_label.md2
-rw-r--r--doc/md/git-bug_label_add.md2
-rw-r--r--doc/md/git-bug_label_rm.md2
-rw-r--r--doc/md/git-bug_ls-id.md2
-rw-r--r--doc/md/git-bug_ls.md2
-rw-r--r--doc/md/git-bug_pull.md2
-rw-r--r--doc/md/git-bug_push.md2
-rw-r--r--doc/md/git-bug_rm.md22
-rw-r--r--doc/md/git-bug_select.md4
-rw-r--r--doc/md/git-bug_show.md2
-rw-r--r--doc/md/git-bug_status.md2
-rw-r--r--doc/md/git-bug_status_close.md2
-rw-r--r--doc/md/git-bug_status_open.md2
-rw-r--r--doc/md/git-bug_title.md2
-rw-r--r--doc/md/git-bug_title_edit.md2
-rw-r--r--doc/md/git-bug_user.md2
-rw-r--r--doc/md/git-bug_user_adopt.md2
-rw-r--r--misc/bash_completion/git-bug21
-rw-r--r--misc/gen_completion.go26
-rw-r--r--misc/powershell_completion/git-bug4
-rw-r--r--misc/zsh_completion/git-bug8
81 files changed, 203 insertions, 115 deletions
diff --git a/commands/bridge_auth_addtoken.go b/commands/bridge_auth_addtoken.go
index 55edd919..272eab8c 100644
--- a/commands/bridge_auth_addtoken.go
+++ b/commands/bridge_auth_addtoken.go
@@ -27,7 +27,7 @@ func newBridgeAuthAddTokenCommand() *cobra.Command {
options := bridgeAuthAddTokenOptions{}
cmd := &cobra.Command{
- Use: "add-token [<token>]",
+ Use: "add-token [TOKEN]",
Short: "Store a new token",
PreRunE: loadBackendEnsureUser(env),
PostRunE: closeBackend(env),
diff --git a/commands/bridge_auth_rm.go b/commands/bridge_auth_rm.go
index b2a44e92..fa73ad11 100644
--- a/commands/bridge_auth_rm.go
+++ b/commands/bridge_auth_rm.go
@@ -10,7 +10,7 @@ func newBridgeAuthRm() *cobra.Command {
env := newEnv()
cmd := &cobra.Command{
- Use: "rm <id>",
+ Use: "rm ID",
Short: "Remove a credential.",
PreRunE: loadRepo(env),
RunE: func(cmd *cobra.Command, args []string) error {
diff --git a/commands/bridge_pull.go b/commands/bridge_pull.go
index bb705582..95eb2fe0 100644
--- a/commands/bridge_pull.go
+++ b/commands/bridge_pull.go
@@ -26,7 +26,7 @@ func newBridgePullCommand() *cobra.Command {
options := bridgePullOptions{}
cmd := &cobra.Command{
- Use: "pull [<name>]",
+ Use: "pull [NAME]",
Short: "Pull updates.",
PreRunE: loadBackend(env),
PostRunE: closeBackend(env),
diff --git a/commands/bridge_push.go b/commands/bridge_push.go
index 7061a5ca..64e3ff4b 100644
--- a/commands/bridge_push.go
+++ b/commands/bridge_push.go
@@ -17,7 +17,7 @@ func newBridgePushCommand() *cobra.Command {
env := newEnv()
cmd := &cobra.Command{
- Use: "push [<name>]",
+ Use: "push [NAME]",
Short: "Push updates.",
PreRunE: loadBackendEnsureUser(env),
PostRunE: closeBackend(env),
diff --git a/commands/bridge_rm.go b/commands/bridge_rm.go
index 9f93c37a..9f5c81c7 100644
--- a/commands/bridge_rm.go
+++ b/commands/bridge_rm.go
@@ -10,7 +10,7 @@ func newBridgeRm() *cobra.Command {
env := newEnv()
cmd := &cobra.Command{
- Use: "rm <name>",
+ Use: "rm NAME",
Short: "Delete a configured bridge.",
PreRunE: loadBackend(env),
PostRunE: closeBackend(env),
diff --git a/commands/commands.go b/commands/commands.go
index 103d5412..49c960ab 100644
--- a/commands/commands.go
+++ b/commands/commands.go
@@ -15,7 +15,7 @@ func newCommandsCommand() *cobra.Command {
options := commandOptions{}
cmd := &cobra.Command{
- Use: "commands [<option>...]",
+ Use: "commands",
Short: "Display available commands.",
RunE: func(cmd *cobra.Command, args []string) error {
return runCommands(env, options)
diff --git a/commands/comment.go b/commands/comment.go
index e81405a6..d8995c3e 100644
--- a/commands/comment.go
+++ b/commands/comment.go
@@ -4,7 +4,7 @@ import (
text "github.com/MichaelMure/go-term-text"
"github.com/spf13/cobra"
- "github.com/MichaelMure/git-bug/commands/select"
+ _select "github.com/MichaelMure/git-bug/commands/select"
"github.com/MichaelMure/git-bug/util/colors"
)
@@ -12,7 +12,7 @@ func newCommentCommand() *cobra.Command {
env := newEnv()
cmd := &cobra.Command{
- Use: "comment [<id>]",
+ Use: "comment [ID]",
Short: "Display or add comments to a bug.",
PreRunE: loadBackend(env),
PostRunE: closeBackend(env),
diff --git a/commands/comment_add.go b/commands/comment_add.go
index 47366d00..6caf4943 100644
--- a/commands/comment_add.go
+++ b/commands/comment_add.go
@@ -3,7 +3,7 @@ package commands
import (
"github.com/spf13/cobra"
- "github.com/MichaelMure/git-bug/commands/select"
+ _select "github.com/MichaelMure/git-bug/commands/select"
"github.com/MichaelMure/git-bug/input"
)
@@ -17,7 +17,7 @@ func newCommentAddCommand() *cobra.Command {
options := commentAddOptions{}
cmd := &cobra.Command{
- Use: "add [<id>]",
+ Use: "add [ID]",
Short: "Add a new comment to a bug.",
PreRunE: loadBackendEnsureUser(env),
PostRunE: closeBackend(env),
diff --git a/commands/label.go b/commands/label.go
index de7bdb3a..e3ffdb64 100644
--- a/commands/label.go
+++ b/commands/label.go
@@ -3,14 +3,14 @@ package commands
import (
"github.com/spf13/cobra"
- "github.com/MichaelMure/git-bug/commands/select"
+ _select "github.com/MichaelMure/git-bug/commands/select"
)
func newLabelCommand() *cobra.Command {
env := newEnv()
cmd := &cobra.Command{
- Use: "label [<id>]",
+ Use: "label [ID]",
Short: "Display, add or remove labels to/from a bug.",
PreRunE: loadBackend(env),
PostRunE: closeBackend(env),
diff --git a/commands/label_add.go b/commands/label_add.go
index 05a27948..ce971f04 100644
--- a/commands/label_add.go
+++ b/commands/label_add.go
@@ -3,14 +3,14 @@ package commands
import (
"github.com/spf13/cobra"
- "github.com/MichaelMure/git-bug/commands/select"
+ _select "github.com/MichaelMure/git-bug/commands/select"
)
func newLabelAddCommand() *cobra.Command {
env := newEnv()
cmd := &cobra.Command{
- Use: "add [<id>] <label>[...]",
+ Use: "add [ID] LABEL...",
Short: "Add a label to a bug.",
PreRunE: loadBackendEnsureUser(env),
PostRunE: closeBackend(env),
@@ -28,7 +28,9 @@ func runLabelAdd(env *Env, args []string) error {
return err
}
- changes, _, err := b.ChangeLabels(args, nil)
+ added := args
+
+ changes, _, err := b.ChangeLabels(added, nil)
for _, change := range changes {
env.out.Println(change)
diff --git a/commands/label_rm.go b/commands/label_rm.go
index 445a56a4..f59ec02d 100644
--- a/commands/label_rm.go
+++ b/commands/label_rm.go
@@ -3,14 +3,14 @@ package commands
import (
"github.com/spf13/cobra"
- "github.com/MichaelMure/git-bug/commands/select"
+ _select "github.com/MichaelMure/git-bug/commands/select"
)
func newLabelRmCommand() *cobra.Command {
env := newEnv()
cmd := &cobra.Command{
- Use: "rm [<id>] <label>[...]",
+ Use: "rm [ID] LABEL...",
Short: "Remove a label from a bug.",
PreRunE: loadBackend(env),
PostRunE: closeBackend(env),
@@ -28,7 +28,9 @@ func runLabelRm(env *Env, args []string) error {
return err
}
- changes, _, err := b.ChangeLabels(nil, args)
+ removed := args
+
+ changes, _, err := b.ChangeLabels(nil, removed)
for _, change := range changes {
env.out.Println(change)
diff --git a/commands/ls-id.go b/commands/ls-id.go
index bed6c057..686f432a 100644
--- a/commands/ls-id.go
+++ b/commands/ls-id.go
@@ -8,7 +8,7 @@ func newLsIdCommand() *cobra.Command {
env := newEnv()
cmd := &cobra.Command{
- Use: "ls-id [<prefix>]",
+ Use: "ls-id [PREFIX]",
Short: "List bug identifiers.",
PreRunE: loadBackend(env),
PostRunE: closeBackend(env),
diff --git a/commands/ls.go b/commands/ls.go
index 4431e0d4..9a863638 100644
--- a/commands/ls.go
+++ b/commands/ls.go
@@ -31,7 +31,7 @@ func newLsCommand() *cobra.Command {
options := lsOptions{}
cmd := &cobra.Command{
- Use: "ls [<query>]",
+ Use: "ls [QUERY]",
Short: "List bugs.",
Long: `Display a summary of each bugs.
diff --git a/commands/pull.go b/commands/pull.go
index 3f032593..3ad4a0c9 100644
--- a/commands/pull.go
+++ b/commands/pull.go
@@ -12,7 +12,7 @@ func newPullCommand() *cobra.Command {
env := newEnv()
cmd := &cobra.Command{
- Use: "pull [<remote>]",
+ Use: "pull [REMOTE]",
Short: "Pull bugs update from a git remote.",
PreRunE: loadBackend(env),
PostRunE: closeBackend(env),
diff --git a/commands/push.go b/commands/push.go
index f4b83fab..89385f10 100644
--- a/commands/push.go
+++ b/commands/push.go
@@ -10,7 +10,7 @@ func newPushCommand() *cobra.Command {
env := newEnv()
cmd := &cobra.Command{
- Use: "push [<remote>]",
+ Use: "push [REMOTE]",
Short: "Push bugs update to a git remote.",
PreRunE: loadBackend(env),
PostRunE: closeBackend(env),
diff --git a/commands/rm.go b/commands/rm.go
index 09f6a6cc..3ad4548d 100644
--- a/commands/rm.go
+++ b/commands/rm.go
@@ -10,7 +10,7 @@ func newRmCommand() *cobra.Command {
env := newEnv()
cmd := &cobra.Command{
- Use: "rm <id>",
+ Use: "rm ID",
Short: "Remove an existing bug.",
Long: "Remove an existing bug in the local repository. Note removing bugs that were imported from bridges will not remove the bug on the remote, and will only remove the local copy of the bug.",
PreRunE: loadBackendEnsureUser(env),
diff --git a/commands/select.go b/commands/select.go
index f2cf2d47..64e38d9b 100644
--- a/commands/select.go
+++ b/commands/select.go
@@ -5,14 +5,14 @@ import (
"github.com/spf13/cobra"
- "github.com/MichaelMure/git-bug/commands/select"
+ _select "github.com/MichaelMure/git-bug/commands/select"
)
func newSelectCommand() *cobra.Command {
env := newEnv()
cmd := &cobra.Command{
- Use: "select <id>",
+ Use: "select ID",
Short: "Select a bug for implicit use in future commands.",
Example: `git bug select 2f15
git bug comment
@@ -20,7 +20,7 @@ git bug status
`,
Long: `Select a bug for implicit use in future commands.
-This command allows you to omit any bug <id> argument, for example:
+This command allows you to omit any bug ID argument, for example:
git bug show
instead of
git bug show 2f153ca
diff --git a/commands/show.go b/commands/show.go
index f3995205..77f315cc 100644
--- a/commands/show.go
+++ b/commands/show.go
@@ -14,7 +14,7 @@ import (
)
type showOptions struct {
- query string
+ fields string
format string
}
@@ -23,7 +23,7 @@ func newShowCommand() *cobra.Command {
options := showOptions{}
cmd := &cobra.Command{
- Use: "show [<id>]",
+ Use: "show [ID]",
Short: "Display the details of a bug.",
PreRunE: loadBackend(env),
PostRunE: closeBackend(env),
@@ -35,7 +35,7 @@ func newShowCommand() *cobra.Command {
flags := cmd.Flags()
flags.SortFlags = false
- flags.StringVarP(&options.query, "field", "", "",
+ flags.StringVarP(&options.fields, "field", "", "",
"Select field to display. Valid values are [author,authorEmail,createTime,lastEdit,humanId,id,labels,shortId,status,title,actors,participants]")
flags.StringVarP(&options.format, "format", "f", "default",
"Select the output formatting style. Valid values are [default,json,org-mode]")
@@ -55,8 +55,8 @@ func runShow(env *Env, opts showOptions, args []string) error {
return errors.New("invalid bug: no comment")
}
- if opts.query != "" {
- switch opts.query {
+ if opts.fields != "" {
+ switch opts.fields {
case "author":
env.out.Printf("%s\n", snap.Author.DisplayName())
case "authorEmail":
@@ -88,7 +88,7 @@ func runShow(env *Env, opts showOptions, args []string) error {
case "title":
env.out.Printf("%s\n", snap.Title)
default:
- return fmt.Errorf("\nUnsupported field: %s\n", opts.query)
+ return fmt.Errorf("\nUnsupported field: %s\n", opts.fields)
}
return nil
diff --git a/commands/status.go b/commands/status.go
index 57771bca..4dceb51c 100644
--- a/commands/status.go
+++ b/commands/status.go
@@ -1,16 +1,15 @@
package commands
import (
+ _select "github.com/MichaelMure/git-bug/commands/select"
"github.com/spf13/cobra"
-
- "github.com/MichaelMure/git-bug/commands/select"
)
func newStatusCommand() *cobra.Command {
env := newEnv()
cmd := &cobra.Command{
- Use: "status [<id>]",
+ Use: "status [ID]",
Short: "Display or change a bug status.",
PreRunE: loadBackend(env),
PostRunE: closeBackend(env),
diff --git a/commands/status_close.go b/commands/status_close.go
index 29092a7b..76f2a758 100644
--- a/commands/status_close.go
+++ b/commands/status_close.go
@@ -1,16 +1,15 @@
package commands
import (
+ _select "github.com/MichaelMure/git-bug/commands/select"
"github.com/spf13/cobra"
-
- "github.com/MichaelMure/git-bug/commands/select"
)
func newStatusCloseCommand() *cobra.Command {
env := newEnv()
cmd := &cobra.Command{
- Use: "close [<id>]",
+ Use: "close [ID]",
Short: "Mark a bug as closed.",
PreRunE: loadBackendEnsureUser(env),
PostRunE: closeBackend(env),
diff --git a/commands/status_open.go b/commands/status_open.go
index 9dd9082c..ff778561 100644
--- a/commands/status_open.go
+++ b/commands/status_open.go
@@ -1,16 +1,15 @@
package commands
import (
+ _select "github.com/MichaelMure/git-bug/commands/select"
"github.com/spf13/cobra"
-
- "github.com/MichaelMure/git-bug/commands/select"
)
func newStatusOpenCommand() *cobra.Command {
env := newEnv()
cmd := &cobra.Command{
- Use: "open [<id>]",
+ Use: "open [ID]",
Short: "Mark a bug as open.",
PreRunE: loadBackendEnsureUser(env),
PostRunE: closeBackend(env),
diff --git a/commands/title.go b/commands/title.go
index d11fb40e..7afa07ce 100644
--- a/commands/title.go
+++ b/commands/title.go
@@ -1,16 +1,15 @@
package commands
import (
+ _select "github.com/MichaelMure/git-bug/commands/select"
"github.com/spf13/cobra"
-
- "github.com/MichaelMure/git-bug/commands/select"
)
func newTitleCommand() *cobra.Command {
env := newEnv()
cmd := &cobra.Command{
- Use: "title [<id>]",
+ Use: "title [ID]",
Short: "Display or change a title of a bug.",
PreRunE: loadBackend(env),
PostRunE: closeBackend(env),
diff --git a/commands/title_edit.go b/commands/title_edit.go
index e2dbc245..3750f2cc 100644
--- a/commands/title_edit.go
+++ b/commands/title_edit.go
@@ -3,7 +3,7 @@ package commands
import (
"github.com/spf13/cobra"
- "github.com/MichaelMure/git-bug/commands/select"
+ _select "github.com/MichaelMure/git-bug/commands/select"
"github.com/MichaelMure/git-bug/input"
)
@@ -16,7 +16,7 @@ func newTitleEditCommand() *cobra.Command {
options := titleEditOptions{}
cmd := &cobra.Command{
- Use: "edit [<id>]",
+ Use: "edit [ID]",
Short: "Edit a title of a bug.",
PreRunE: loadBackendEnsureUser(env),
PostRunE: closeBackend(env),
diff --git a/commands/user.go b/commands/user.go
index 8a6aef53..d4d3fecd 100644
--- a/commands/user.go
+++ b/commands/user.go
@@ -10,7 +10,7 @@ import (
)
type userOptions struct {
- fieldsQuery string
+ fields string
}
func newUserCommand() *cobra.Command {
@@ -18,7 +18,7 @@ func newUserCommand() *cobra.Command {
options := userOptions{}
cmd := &cobra.Command{
- Use: "user [<user-id>]",
+ Use: "user [USER-ID]",
Short: "Display or change the user identity.",
PreRunE: loadBackendEnsureUser(env),
PostRunE: closeBackend(env),
@@ -34,7 +34,7 @@ func newUserCommand() *cobra.Command {
flags := cmd.Flags()
flags.SortFlags = false
- flags.StringVarP(&options.fieldsQuery, "field", "f", "",
+ flags.StringVarP(&options.fields, "field", "f", "",
"Select field to display. Valid values are [email,humanId,id,lastModification,lastModificationLamport,login,metadata,name]")
return cmd
@@ -57,8 +57,8 @@ func runUser(env *Env, opts userOptions, args []string) error {
return err
}
- if opts.fieldsQuery != "" {
- switch opts.fieldsQuery {
+ if opts.fields != "" {
+ switch opts.fields {
case "email":
env.out.Printf("%s\n", id.Email())
case "login":
@@ -80,7 +80,7 @@ func runUser(env *Env, opts userOptions, args []string) error {
env.out.Printf("%s\n", id.Name())
default:
- return fmt.Errorf("\nUnsupported field: %s\n", opts.fieldsQuery)
+ return fmt.Errorf("\nUnsupported field: %s\n", opts.fields)
}
return nil
diff --git a/commands/user_adopt.go b/commands/user_adopt.go
index 521f032f..5ab6e39c 100644
--- a/commands/user_adopt.go
+++ b/commands/user_adopt.go
@@ -8,7 +8,7 @@ func newUserAdoptCommand() *cobra.Command {
env := newEnv()
cmd := &cobra.Command{
- Use: "adopt <user-id>",
+ Use: "adopt USER-ID",
Short: "Adopt an existing identity as your own.",
Args: cobra.ExactArgs(1),
PreRunE: loadBackend(env),
diff --git a/doc/man/git-bug-bridge-auth-add-token.1 b/doc/man/git-bug-bridge-auth-add-token.1
index fe4750b4..d522f0c7 100644
--- a/doc/man/git-bug-bridge-auth-add-token.1
+++ b/doc/man/git-bug-bridge-auth-add-token.1
@@ -9,7 +9,7 @@ git\-bug\-bridge\-auth\-add\-token \- Store a new token
.SH SYNOPSIS
.PP
-\fBgit\-bug bridge auth add\-token [] [flags]\fP
+\fBgit\-bug bridge auth add\-token [TOKEN] [flags]\fP
.SH DESCRIPTION
diff --git a/doc/man/git-bug-bridge-auth-rm.1 b/doc/man/git-bug-bridge-auth-rm.1
index 9ddac3f2..f2a9408a 100644
--- a/doc/man/git-bug-bridge-auth-rm.1
+++ b/doc/man/git-bug-bridge-auth-rm.1
@@ -9,7 +9,7 @@ git\-bug\-bridge\-auth\-rm \- Remove a credential.
.SH SYNOPSIS
.PP
-\fBgit\-bug bridge auth rm [flags]\fP
+\fBgit\-bug bridge auth rm ID [flags]\fP
.SH DESCRIPTION
diff --git a/doc/man/git-bug-bridge-pull.1 b/doc/man/git-bug-bridge-pull.1
index 4a9e78db..12d12438 100644
--- a/doc/man/git-bug-bridge-pull.1
+++ b/doc/man/git-bug-bridge-pull.1
@@ -9,7 +9,7 @@ git\-bug\-bridge\-pull \- Pull updates.
.SH SYNOPSIS
.PP
-\fBgit\-bug bridge pull [] [flags]\fP
+\fBgit\-bug bridge pull [NAME] [flags]\fP
.SH DESCRIPTION
diff --git a/doc/man/git-bug-bridge-push.1 b/doc/man/git-bug-bridge-push.1
index 59e60bdf..c15cce60 100644
--- a/doc/man/git-bug-bridge-push.1
+++ b/doc/man/git-bug-bridge-push.1
@@ -9,7 +9,7 @@ git\-bug\-bridge\-push \- Push updates.
.SH SYNOPSIS
.PP
-\fBgit\-bug bridge push [] [flags]\fP
+\fBgit\-bug bridge push [NAME] [flags]\fP
.SH DESCRIPTION
diff --git a/doc/man/git-bug-bridge-rm.1 b/doc/man/git-bug-bridge-rm.1
index 8cfa925a..70ca410f 100644
--- a/doc/man/git-bug-bridge-rm.1
+++ b/doc/man/git-bug-bridge-rm.1
@@ -9,7 +9,7 @@ git\-bug\-bridge\-rm \- Delete a configured bridge.
.SH SYNOPSIS
.PP
-\fBgit\-bug bridge rm [flags]\fP
+\fBgit\-bug bridge rm NAME [flags]\fP
.SH DESCRIPTION
diff --git a/doc/man/git-bug-commands.1 b/doc/man/git-bug-commands.1
index b7c1e214..28fabca5 100644
--- a/doc/man/git-bug-commands.1
+++ b/doc/man/git-bug-commands.1
@@ -9,7 +9,7 @@ git\-bug\-commands \- Display available commands.
.SH SYNOPSIS
.PP
-\fBgit\-bug commands [\&...] [flags]\fP
+\fBgit\-bug commands [flags]\fP
.SH DESCRIPTION
diff --git a/doc/man/git-bug-comment-add.1 b/doc/man/git-bug-comment-add.1
index 530101b8..c1d13aa2 100644
--- a/doc/man/git-bug-comment-add.1
+++ b/doc/man/git-bug-comment-add.1
@@ -9,7 +9,7 @@ git\-bug\-comment\-add \- Add a new comment to a bug.
.SH SYNOPSIS
.PP
-\fBgit\-bug comment add [] [flags]\fP
+\fBgit\-bug comment add [ID] [flags]\fP
.SH DESCRIPTION
diff --git a/doc/man/git-bug-comment.1 b/doc/man/git-bug-comment.1
index 9beb7a06..7d46258d 100644
--- a/doc/man/git-bug-comment.1
+++ b/doc/man/git-bug-comment.1
@@ -9,7 +9,7 @@ git\-bug\-comment \- Display or add comments to a bug.
.SH SYNOPSIS
.PP
-\fBgit\-bug comment [] [flags]\fP
+\fBgit\-bug comment [ID] [flags]\fP
.SH DESCRIPTION
diff --git a/doc/man/git-bug-label-add.1 b/doc/man/git-bug-label-add.1
index 86a4bb24..a11cdbe7 100644
--- a/doc/man/git-bug-label-add.1
+++ b/doc/man/git-bug-label-add.1
@@ -9,7 +9,7 @@ git\-bug\-label\-add \- Add a label to a bug.
.SH SYNOPSIS
.PP
-\fBgit\-bug label add [] [...] [flags]\fP
+\fBgit\-bug label add [ID] LABEL... [flags]\fP
.SH DESCRIPTION
diff --git a/doc/man/git-bug-label-rm.1 b/doc/man/git-bug-label-rm.1
index e7e912ea..58dcccec 100644
--- a/doc/man/git-bug-label-rm.1
+++ b/doc/man/git-bug-label-rm.1
@@ -9,7 +9,7 @@ git\-bug\-label\-rm \- Remove a label from a bug.
.SH SYNOPSIS
.PP
-\fBgit\-bug label rm [] [...] [flags]\fP
+\fBgit\-bug label rm [ID] LABEL... [flags]\fP
.SH DESCRIPTION
diff --git a/doc/man/git-bug-label.1 b/doc/man/git-bug-label.1
index 23fc0047..f5a47c5c 100644
--- a/doc/man/git-bug-label.1
+++ b/doc/man/git-bug-label.1
@@ -9,7 +9,7 @@ git\-bug\-label \- Display, add or remove labels to/from a bug.
.SH SYNOPSIS
.PP
-\fBgit\-bug label [] [flags]\fP
+\fBgit\-bug label [ID] [flags]\fP
.SH DESCRIPTION
diff --git a/doc/man/git-bug-ls-id.1 b/doc/man/git-bug-ls-id.1
index c7b40114..d35415b4 100644
--- a/doc/man/git-bug-ls-id.1
+++ b/doc/man/git-bug-ls-id.1
@@ -9,7 +9,7 @@ git\-bug\-ls\-id \- List bug identifiers.
.SH SYNOPSIS
.PP
-\fBgit\-bug ls\-id [] [flags]\fP
+\fBgit\-bug ls\-id [PREFIX] [flags]\fP
.SH DESCRIPTION
diff --git a/doc/man/git-bug-ls.1 b/doc/man/git-bug-ls.1
index 54a64cd2..2e6e0b63 100644
--- a/doc/man/git-bug-ls.1
+++ b/doc/man/git-bug-ls.1
@@ -9,7 +9,7 @@ git\-bug\-ls \- List bugs.
.SH SYNOPSIS
.PP
-\fBgit\-bug ls [] [flags]\fP
+\fBgit\-bug ls [QUERY] [flags]\fP
.SH DESCRIPTION
diff --git a/doc/man/git-bug-pull.1 b/doc/man/git-bug-pull.1
index 82b741ed..aed5a844 100644
--- a/doc/man/git-bug-pull.1
+++ b/doc/man/git-bug-pull.1
@@ -9,7 +9,7 @@ git\-bug\-pull \- Pull bugs update from a git remote.
.SH SYNOPSIS
.PP
-\fBgit\-bug pull [] [flags]\fP
+\fBgit\-bug pull [REMOTE] [flags]\fP
.SH DESCRIPTION
diff --git a/doc/man/git-bug-push.1 b/doc/man/git-bug-push.1
index dc694258..19a90cfc 100644
--- a/doc/man/git-bug-push.1
+++ b/doc/man/git-bug-push.1
@@ -9,7 +9,7 @@ git\-bug\-push \- Push bugs update to a git remote.
.SH SYNOPSIS
.PP
-\fBgit\-bug push [] [flags]\fP
+\fBgit\-bug push [REMOTE] [flags]\fP
.SH DESCRIPTION
diff --git a/doc/man/git-bug-rm.1 b/doc/man/git-bug-rm.1
new file mode 100644
index 00000000..8989c2ff
--- /dev/null
+++ b/doc/man/git-bug-rm.1
@@ -0,0 +1,28 @@
+.nh
+.TH GIT\-BUG(1)Apr 2019
+Generated from git\-bug's source code
+
+.SH NAME
+.PP
+git\-bug\-rm \- Remove an existing bug.
+
+
+.SH SYNOPSIS
+.PP
+\fBgit\-bug rm ID [flags]\fP
+
+
+.SH DESCRIPTION
+.PP
+Remove an existing bug in the local repository. Note removing bugs that were imported from bridges will not remove the bug on the remote, and will only remove the local copy of the bug.
+
+
+.SH OPTIONS
+.PP
+\fB\-h\fP, \fB\-\-help\fP[=false]
+ help for rm
+
+
+.SH SEE ALSO
+.PP
+\fBgit\-bug(1)\fP
diff --git a/doc/man/git-bug-select.1 b/doc/man/git-bug-select.1
index 4df61221..47d46fe1 100644
--- a/doc/man/git-bug-select.1
+++ b/doc/man/git-bug-select.1
@@ -9,7 +9,7 @@ git\-bug\-select \- Select a bug for implicit use in future commands.
.SH SYNOPSIS
.PP
-\fBgit\-bug select [flags]\fP
+\fBgit\-bug select ID [flags]\fP
.SH DESCRIPTION
@@ -17,7 +17,7 @@ git\-bug\-select \- Select a bug for implicit use in future commands.
Select a bug for implicit use in future commands.
.PP
-This command allows you to omit any bug argument, for example:
+This command allows you to omit any bug ID argument, for example:
git bug show
instead of
git bug show 2f153ca
diff --git a/doc/man/git-bug-show.1 b/doc/man/git-bug-show.1
index eb694dac..6aca9063 100644
--- a/doc/man/git-bug-show.1
+++ b/doc/man/git-bug-show.1
@@ -9,7 +9,7 @@ git\-bug\-show \- Display the details of a bug.
.SH SYNOPSIS
.PP
-\fBgit\-bug show [] [flags]\fP
+\fBgit\-bug show [ID] [flags]\fP
.SH DESCRIPTION
diff --git a/doc/man/git-bug-status-close.1 b/doc/man/git-bug-status-close.1
index 539c5447..2caeb8f5 100644
--- a/doc/man/git-bug-status-close.1
+++ b/doc/man/git-bug-status-close.1
@@ -9,7 +9,7 @@ git\-bug\-status\-close \- Mark a bug as closed.
.SH SYNOPSIS
.PP
-\fBgit\-bug status close [] [flags]\fP
+\fBgit\-bug status close [ID] [flags]\fP
.SH DESCRIPTION
diff --git a/doc/man/git-bug-status-open.1 b/doc/man/git-bug-status-open.1
index d7aca0d0..950574ff 100644
--- a/doc/man/git-bug-status-open.1
+++ b/doc/man/git-bug-status-open.1
@@ -9,7 +9,7 @@ git\-bug\-status\-open \- Mark a bug as open.
.SH SYNOPSIS
.PP
-\fBgit\-bug status open [] [flags]\fP
+\fBgit\-bug status open [ID] [flags]\fP
.SH DESCRIPTION
diff --git a/doc/man/git-bug-status.1 b/doc/man/git-bug-status.1
index df013911..22c31a3a 100644
--- a/doc/man/git-bug-status.1
+++ b/doc/man/git-bug-status.1
@@ -9,7 +9,7 @@ git\-bug\-status \- Display or change a bug status.
.SH SYNOPSIS
.PP
-\fBgit\-bug status [] [flags]\fP
+\fBgit\-bug status [ID] [flags]\fP
.SH DESCRIPTION
diff --git a/doc/man/git-bug-title-edit.1 b/doc/man/git-bug-title-edit.1
index c1903854..99f4de86 100644
--- a/doc/man/git-bug-title-edit.1
+++ b/doc/man/git-bug-title-edit.1
@@ -9,7 +9,7 @@ git\-bug\-title\-edit \- Edit a title of a bug.
.SH SYNOPSIS
.PP
-\fBgit\-bug title edit [] [flags]\fP
+\fBgit\-bug title edit [ID] [flags]\fP
.SH DESCRIPTION
diff --git a/doc/man/git-bug-title.1 b/doc/man/git-bug-title.1
index e3345acd..9d7deb0e 100644
--- a/doc/man/git-bug-title.1
+++ b/doc/man/git-bug-title.1
@@ -9,7 +9,7 @@ git\-bug\-title \- Display or change a title of a bug.
.SH SYNOPSIS
.PP
-\fBgit\-bug title [] [flags]\fP
+\fBgit\-bug title [ID] [flags]\fP
.SH DESCRIPTION
diff --git a/doc/man/git-bug-user-adopt.1 b/doc/man/git-bug-user-adopt.1
index 2be2afcb..6a53b36c 100644
--- a/doc/man/git-bug-user-adopt.1
+++ b/doc/man/git-bug-user-adopt.1
@@ -9,7 +9,7 @@ git\-bug\-user\-adopt \- Adopt an existing identity as your own.
.SH SYNOPSIS
.PP
-\fBgit\-bug user adopt [flags]\fP
+\fBgit\-bug user adopt USER\-ID [flags]\fP
.SH DESCRIPTION
diff --git a/doc/man/git-bug-user.1 b/doc/man/git-bug-user.1
index 5a4cf439..a454b56c 100644
--- a/doc/man/git-bug-user.1
+++ b/doc/man/git-bug-user.1
@@ -9,7 +9,7 @@ git\-bug\-user \- Display or change the user identity.
.SH SYNOPSIS
.PP
-\fBgit\-bug user [] [flags]\fP
+\fBgit\-bug user [USER\-ID] [flags]\fP
.SH DESCRIPTION
diff --git a/doc/man/git-bug.1 b/doc/man/git-bug.1
index b9e5d758..ecb35feb 100644
--- a/doc/man/git-bug.1
+++ b/doc/man/git-bug.1
@@ -30,4 +30,4 @@ the same git remote you are already using to collaborate with other people.
.SH SEE ALSO
.PP
-\fBgit\-bug\-add(1)\fP, \fBgit\-bug\-bridge(1)\fP, \fBgit\-bug\-commands(1)\fP, \fBgit\-bug\-comment(1)\fP, \fBgit\-bug\-deselect(1)\fP, \fBgit\-bug\-label(1)\fP, \fBgit\-bug\-ls(1)\fP, \fBgit\-bug\-ls\-id(1)\fP, \fBgit\-bug\-ls\-label(1)\fP, \fBgit\-bug\-pull(1)\fP, \fBgit\-bug\-push(1)\fP, \fBgit\-bug\-select(1)\fP, \fBgit\-bug\-show(1)\fP, \fBgit\-bug\-status(1)\fP, \fBgit\-bug\-termui(1)\fP, \fBgit\-bug\-title(1)\fP, \fBgit\-bug\-user(1)\fP, \fBgit\-bug\-version(1)\fP, \fBgit\-bug\-webui(1)\fP
+\fBgit\-bug\-add(1)\fP, \fBgit\-bug\-bridge(1)\fP, \fBgit\-bug\-commands(1)\fP, \fBgit\-bug\-comment(1)\fP, \fBgit\-bug\-deselect(1)\fP, \fBgit\-bug\-label(1)\fP, \fBgit\-bug\-ls(1)\fP, \fBgit\-bug\-ls\-id(1)\fP, \fBgit\-bug\-ls\-label(1)\fP, \fBgit\-bug\-pull(1)\fP, \fBgit\-bug\-push(1)\fP, \fBgit\-bug\-rm(1)\fP, \fBgit\-bug\-select(1)\fP, \fBgit\-bug\-show(1)\fP, \fBgit\-bug\-status(1)\fP, \fBgit\-bug\-termui(1)\fP, \fBgit\-bug\-title(1)\fP, \fBgit\-bug\-user(1)\fP, \fBgit\-bug\-version(1)\fP, \fBgit\-bug\-webui(1)\fP
diff --git a/doc/md/git-bug.md b/doc/md/git-bug.md
index 5a736f34..99b554e2 100644
--- a/doc/md/git-bug.md
+++ b/doc/md/git-bug.md
@@ -35,6 +35,7 @@ git-bug [flags]
* [git-bug ls-label](git-bug_ls-label.md) - List valid labels.
* [git-bug pull](git-bug_pull.md) - Pull bugs update from a git remote.
* [git-bug push](git-bug_push.md) - Push bugs update to a git remote.
+* [git-bug rm](git-bug_rm.md) - Remove an existing bug.
* [git-bug select](git-bug_select.md) - Select a bug for implicit use in future commands.
* [git-bug show](git-bug_show.md) - Display the details of a bug.
* [git-bug status](git-bug_status.md) - Display or change a bug status.
diff --git a/doc/md/git-bug_bridge_auth_add-token.md b/doc/md/git-bug_bridge_auth_add-token.md
index f0f8ac72..c6466522 100644
--- a/doc/md/git-bug_bridge_auth_add-token.md
+++ b/doc/md/git-bug_bridge_auth_add-token.md
@@ -7,7 +7,7 @@ Store a new token
Store a new token
```
-git-bug bridge auth add-token [<token>] [flags]
+git-bug bridge auth add-token [TOKEN] [flags]
```
### Options
diff --git a/doc/md/git-bug_bridge_auth_rm.md b/doc/md/git-bug_bridge_auth_rm.md
index 059aa43d..cf470c0c 100644
--- a/doc/md/git-bug_bridge_auth_rm.md
+++ b/doc/md/git-bug_bridge_auth_rm.md
@@ -7,7 +7,7 @@ Remove a credential.
Remove a credential.
```
-git-bug bridge auth rm <id> [flags]
+git-bug bridge auth rm ID [flags]
```
### Options
diff --git a/doc/md/git-bug_bridge_pull.md b/doc/md/git-bug_bridge_pull.md
index fea92b85..784bf99c 100644
--- a/doc/md/git-bug_bridge_pull.md
+++ b/doc/md/git-bug_bridge_pull.md
@@ -7,7 +7,7 @@ Pull updates.
Pull updates.
```
-git-bug bridge pull [<name>] [flags]
+git-bug bridge pull [NAME] [flags]
```
### Options
diff --git a/doc/md/git-bug_bridge_push.md b/doc/md/git-bug_bridge_push.md
index 35436dd6..387270e2 100644
--- a/doc/md/git-bug_bridge_push.md
+++ b/doc/md/git-bug_bridge_push.md
@@ -7,7 +7,7 @@ Push updates.
Push updates.
```
-git-bug bridge push [<name>] [flags]
+git-bug bridge push [NAME] [flags]
```
### Options
diff --git a/doc/md/git-bug_bridge_rm.md b/doc/md/git-bug_bridge_rm.md
index 54941b2f..748011f2 100644
--- a/doc/md/git-bug_bridge_rm.md
+++ b/doc/md/git-bug_bridge_rm.md
@@ -7,7 +7,7 @@ Delete a configured bridge.
Delete a configured bridge.
```
-git-bug bridge rm <name> [flags]
+git-bug bridge rm NAME [flags]
```
### Options
diff --git a/doc/md/git-bug_commands.md b/doc/md/git-bug_commands.md
index e1a409d2..00eef422 100644
--- a/doc/md/git-bug_commands.md
+++ b/doc/md/git-bug_commands.md
@@ -7,7 +7,7 @@ Display available commands.
Display available commands.
```
-git-bug commands [<option>...] [flags]
+git-bug commands [flags]
```
### Options
diff --git a/doc/md/git-bug_comment.md b/doc/md/git-bug_comment.md
index 5a79cf6f..60c4ee88 100644
--- a/doc/md/git-bug_comment.md
+++ b/doc/md/git-bug_comment.md
@@ -7,7 +7,7 @@ Display or add comments to a bug.
Display or add comments to a bug.
```
-git-bug comment [<id>] [flags]
+git-bug comment [ID] [flags]
```
### Options
diff --git a/doc/md/git-bug_comment_add.md b/doc/md/git-bug_comment_add.md
index 51114f7d..64bd840c 100644
--- a/doc/md/git-bug_comment_add.md
+++ b/doc/md/git-bug_comment_add.md
@@ -7,7 +7,7 @@ Add a new comment to a bug.
Add a new comment to a bug.
```
-git-bug comment add [<id>] [flags]
+git-bug comment add [ID] [flags]
```
### Options
diff --git a/doc/md/git-bug_label.md b/doc/md/git-bug_label.md
index 5ac7c2e6..a847af3d 100644
--- a/doc/md/git-bug_label.md
+++ b/doc/md/git-bug_label.md
@@ -7,7 +7,7 @@ Display, add or remove labels to/from a bug.
Display, add or remove labels to/from a bug.
```
-git-bug label [<id>] [flags]
+git-bug label [ID] [flags]
```
### Options
diff --git a/doc/md/git-bug_label_add.md b/doc/md/git-bug_label_add.md
index ee0a82ad..9900b52d 100644
--- a/doc/md/git-bug_label_add.md
+++ b/doc/md/git-bug_label_add.md
@@ -7,7 +7,7 @@ Add a label to a bug.
Add a label to a bug.
```
-git-bug label add [<id>] <label>[...] [flags]
+git-bug label add [ID] LABEL... [flags]
```
### Options
diff --git a/doc/md/git-bug_label_rm.md b/doc/md/git-bug_label_rm.md
index b447f44d..fa6d1aa3 100644
--- a/doc/md/git-bug_label_rm.md
+++ b/doc/md/git-bug_label_rm.md
@@ -7,7 +7,7 @@ Remove a label from a bug.
Remove a label from a bug.
```
-git-bug label rm [<id>] <label>[...] [flags]
+git-bug label rm [ID] LABEL... [flags]
```
### Options
diff --git a/doc/md/git-bug_ls-id.md b/doc/md/git-bug_ls-id.md
index 0117474c..134f3aec 100644
--- a/doc/md/git-bug_ls-id.md
+++ b/doc/md/git-bug_ls-id.md
@@ -7,7 +7,7 @@ List bug identifiers.
List bug identifiers.
```
-git-bug ls-id [<prefix>] [flags]
+git-bug ls-id [PREFIX] [flags]
```
### Options
diff --git a/doc/md/git-bug_ls.md b/doc/md/git-bug_ls.md
index 1532efab..e2721c72 100644
--- a/doc/md/git-bug_ls.md
+++ b/doc/md/git-bug_ls.md
@@ -9,7 +9,7 @@ Display a summary of each bugs.
You can pass an additional query to filter and order the list. This query can be expressed either with a simple query language or with flags.
```
-git-bug ls [<query>] [flags]
+git-bug ls [QUERY] [flags]
```
### Examples
diff --git a/doc/md/git-bug_pull.md b/doc/md/git-bug_pull.md
index 1519c87f..cf29e079 100644
--- a/doc/md/git-bug_pull.md
+++ b/doc/md/git-bug_pull.md
@@ -7,7 +7,7 @@ Pull bugs update from a git remote.
Pull bugs update from a git remote.
```
-git-bug pull [<remote>] [flags]
+git-bug pull [REMOTE] [flags]
```
### Options
diff --git a/doc/md/git-bug_push.md b/doc/md/git-bug_push.md
index 5e95ea2f..226bc951 100644
--- a/doc/md/git-bug_push.md
+++ b/doc/md/git-bug_push.md
@@ -7,7 +7,7 @@ Push bugs update to a git remote.
Push bugs update to a git remote.
```
-git-bug push [<remote>] [flags]
+git-bug push [REMOTE] [flags]
```
### Options
diff --git a/doc/md/git-bug_rm.md b/doc/md/git-bug_rm.md
new file mode 100644
index 00000000..3b77ce1c
--- /dev/null
+++ b/doc/md/git-bug_rm.md
@@ -0,0 +1,22 @@
+## git-bug rm
+
+Remove an existing bug.
+
+### Synopsis
+
+Remove an existing bug in the local repository. Note removing bugs that were imported from bridges will not remove the bug on the remote, and will only remove the local copy of the bug.
+
+```
+git-bug rm ID [flags]
+```
+
+### Options
+
+```
+ -h, --help help for rm
+```
+
+### SEE ALSO
+
+* [git-bug](git-bug.md) - A bug tracker embedded in Git.
+
diff --git a/doc/md/git-bug_select.md b/doc/md/git-bug_select.md
index 6a851acb..b8a71120 100644
--- a/doc/md/git-bug_select.md
+++ b/doc/md/git-bug_select.md
@@ -6,7 +6,7 @@ Select a bug for implicit use in future commands.
Select a bug for implicit use in future commands.
-This command allows you to omit any bug <id> argument, for example:
+This command allows you to omit any bug ID argument, for example:
git bug show
instead of
git bug show 2f153ca
@@ -15,7 +15,7 @@ The complementary command is "git bug deselect" performing the opposite operatio
```
-git-bug select <id> [flags]
+git-bug select ID [flags]
```
### Examples
diff --git a/doc/md/git-bug_show.md b/doc/md/git-bug_show.md
index e6d2d7ba..1c6a4ab0 100644
--- a/doc/md/git-bug_show.md
+++ b/doc/md/git-bug_show.md
@@ -7,7 +7,7 @@ Display the details of a bug.
Display the details of a bug.
```
-git-bug show [<id>] [flags]
+git-bug show [ID] [flags]
```
### Options
diff --git a/doc/md/git-bug_status.md b/doc/md/git-bug_status.md
index a04098e6..c2b380f3 100644
--- a/doc/md/git-bug_status.md
+++ b/doc/md/git-bug_status.md
@@ -7,7 +7,7 @@ Display or change a bug status.
Display or change a bug status.
```
-git-bug status [<id>] [flags]
+git-bug status [ID] [flags]
```
### Options
diff --git a/doc/md/git-bug_status_close.md b/doc/md/git-bug_status_close.md
index 4978341f..97081b59 100644
--- a/doc/md/git-bug_status_close.md
+++ b/doc/md/git-bug_status_close.md
@@ -7,7 +7,7 @@ Mark a bug as closed.
Mark a bug as closed.
```
-git-bug status close [<id>] [flags]
+git-bug status close [ID] [flags]
```
### Options
diff --git a/doc/md/git-bug_status_open.md b/doc/md/git-bug_status_open.md
index f6d03215..661508ad 100644
--- a/doc/md/git-bug_status_open.md
+++ b/doc/md/git-bug_status_open.md
@@ -7,7 +7,7 @@ Mark a bug as open.
Mark a bug as open.
```
-git-bug status open [<id>] [flags]
+git-bug status open [ID] [flags]
```
### Options
diff --git a/doc/md/git-bug_title.md b/doc/md/git-bug_title.md
index cb326071..5c5698e0 100644
--- a/doc/md/git-bug_title.md
+++ b/doc/md/git-bug_title.md
@@ -7,7 +7,7 @@ Display or change a title of a bug.
Display or change a title of a bug.
```
-git-bug title [<id>] [flags]
+git-bug title [ID] [flags]
```
### Options
diff --git a/doc/md/git-bug_title_edit.md b/doc/md/git-bug_title_edit.md
index edf44a1a..8119b8b5 100644
--- a/doc/md/git-bug_title_edit.md
+++ b/doc/md/git-bug_title_edit.md
@@ -7,7 +7,7 @@ Edit a title of a bug.
Edit a title of a bug.
```
-git-bug title edit [<id>] [flags]
+git-bug title edit [ID] [flags]
```
### Options
diff --git a/doc/md/git-bug_user.md b/doc/md/git-bug_user.md
index f2c783af..4fc0dd54 100644
--- a/doc/md/git-bug_user.md
+++ b/doc/md/git-bug_user.md
@@ -7,7 +7,7 @@ Display or change the user identity.
Display or change the user identity.
```
-git-bug user [<user-id>] [flags]
+git-bug user [USER-ID] [flags]
```
### Options
diff --git a/doc/md/git-bug_user_adopt.md b/doc/md/git-bug_user_adopt.md
index 7bedace5..86682be0 100644
--- a/doc/md/git-bug_user_adopt.md
+++ b/doc/md/git-bug_user_adopt.md
@@ -7,7 +7,7 @@ Adopt an existing identity as your own.
Adopt an existing identity as your own.
```
-git-bug user adopt <user-id> [flags]
+git-bug user adopt USER-ID [flags]
```
### Options
diff --git a/misc/bash_completion/git-bug b/misc/bash_completion/git-bug
index 4152725f..8e2de8df 100644
--- a/misc/bash_completion/git-bug
+++ b/misc/bash_completion/git-bug
@@ -897,6 +897,26 @@ _git-bug_push()
noun_aliases=()
}
+_git-bug_rm()
+{
+ last_command="git-bug_rm"
+
+ command_aliases=()
+
+ commands=()
+
+ flags=()
+ two_word_flags=()
+ local_nonpersistent_flags=()
+ flags_with_completion=()
+ flags_completion=()
+
+
+ must_have_one_flag=()
+ must_have_one_noun=()
+ noun_aliases=()
+}
+
_git-bug_select()
{
last_command="git-bug_select"
@@ -1239,6 +1259,7 @@ _git-bug_root_command()
commands+=("ls-label")
commands+=("pull")
commands+=("push")
+ commands+=("rm")
commands+=("select")
commands+=("show")
commands+=("status")
diff --git a/misc/gen_completion.go b/misc/gen_completion.go
index 80b89902..0bc546f7 100644
--- a/misc/gen_completion.go
+++ b/misc/gen_completion.go
@@ -6,13 +6,17 @@ import (
"path"
"sync"
+ "github.com/spf13/cobra"
+
"github.com/MichaelMure/git-bug/commands"
)
func main() {
fmt.Println("Generating completion files ...")
- tasks := map[string]func() error{
+ root := commands.NewRootCommand()
+
+ tasks := map[string]func(*cobra.Command) error{
"Bash": genBash,
"Fish": genFish,
"PowerShell": genPowerShell,
@@ -22,9 +26,9 @@ func main() {
var wg sync.WaitGroup
for name, f := range tasks {
wg.Add(1)
- go func(name string, f func() error) {
+ go func(name string, f func(*cobra.Command) error) {
defer wg.Done()
- err := f()
+ err := f(root)
if err != nil {
fmt.Printf(" - %s: %v\n", name, err)
return
@@ -36,26 +40,26 @@ func main() {
wg.Wait()
}
-func genBash() error {
+func genBash(root *cobra.Command) error {
cwd, _ := os.Getwd()
dir := path.Join(cwd, "misc", "bash_completion", "git-bug")
- return commands.NewRootCommand().GenBashCompletionFile(dir)
+ return root.GenBashCompletionFile(dir)
}
-func genFish() error {
+func genFish(root *cobra.Command) error {
cwd, _ := os.Getwd()
dir := path.Join(cwd, "misc", "fish_completion", "git-bug")
- return commands.NewRootCommand().GenFishCompletionFile(dir, true)
+ return root.GenFishCompletionFile(dir, true)
}
-func genPowerShell() error {
+func genPowerShell(root *cobra.Command) error {
cwd, _ := os.Getwd()
filepath := path.Join(cwd, "misc", "powershell_completion", "git-bug")
- return commands.NewRootCommand().GenPowerShellCompletionFile(filepath)
+ return root.GenPowerShellCompletionFile(filepath)
}
-func genZsh() error {
+func genZsh(root *cobra.Command) error {
cwd, _ := os.Getwd()
filepath := path.Join(cwd, "misc", "zsh_completion", "git-bug")
- return commands.NewRootCommand().GenZshCompletionFile(filepath)
+ return root.GenZshCompletionFile(filepath)
}
diff --git a/misc/powershell_completion/git-bug b/misc/powershell_completion/git-bug
index 40831a11..c2aa0adf 100644
--- a/misc/powershell_completion/git-bug
+++ b/misc/powershell_completion/git-bug
@@ -28,6 +28,7 @@ Register-ArgumentCompleter -Native -CommandName 'git-bug' -ScriptBlock {
[CompletionResult]::new('ls-label', 'ls-label', [CompletionResultType]::ParameterValue, 'List valid labels.')
[CompletionResult]::new('pull', 'pull', [CompletionResultType]::ParameterValue, 'Pull bugs update from a git remote.')
[CompletionResult]::new('push', 'push', [CompletionResultType]::ParameterValue, 'Push bugs update to a git remote.')
+ [CompletionResult]::new('rm', 'rm', [CompletionResultType]::ParameterValue, 'Remove an existing bug.')
[CompletionResult]::new('select', 'select', [CompletionResultType]::ParameterValue, 'Select a bug for implicit use in future commands.')
[CompletionResult]::new('show', 'show', [CompletionResultType]::ParameterValue, 'Display the details of a bug.')
[CompletionResult]::new('status', 'status', [CompletionResultType]::ParameterValue, 'Display or change a bug status.')
@@ -175,6 +176,9 @@ Register-ArgumentCompleter -Native -CommandName 'git-bug' -ScriptBlock {
'git-bug;push' {
break
}
+ 'git-bug;rm' {
+ break
+ }
'git-bug;select' {
break
}
diff --git a/misc/zsh_completion/git-bug b/misc/zsh_completion/git-bug
index fbd52be5..4ae10382 100644
--- a/misc/zsh_completion/git-bug
+++ b/misc/zsh_completion/git-bug
@@ -22,6 +22,7 @@ function _git-bug {
"ls-label:List valid labels."
"pull:Pull bugs update from a git remote."
"push:Push bugs update to a git remote."
+ "rm:Remove an existing bug."
"select:Select a bug for implicit use in future commands."
"show:Display the details of a bug."
"status:Display or change a bug status."
@@ -69,6 +70,9 @@ function _git-bug {
push)
_git-bug_push
;;
+ rm)
+ _git-bug_rm
+ ;;
select)
_git-bug_select
;;
@@ -323,6 +327,10 @@ function _git-bug_push {
_arguments
}
+function _git-bug_rm {
+ _arguments
+}
+
function _git-bug_select {
_arguments
}