From 2fd5f71b592eeebd0c0c4c770a7dac88d7eae80a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Mur=C3=A9?= Date: Sun, 24 Feb 2019 14:46:08 +0100 Subject: [PATCH] commands: add a "." at the end of Short commands usage --- commands/add.go | 2 +- commands/bridge.go | 2 +- commands/bridge_configure.go | 2 +- commands/bridge_pull.go | 2 +- commands/bridge_rm.go | 2 +- commands/commands.go | 2 +- commands/comment.go | 2 +- commands/comment_add.go | 2 +- commands/deselect.go | 2 +- commands/label.go | 2 +- commands/label_add.go | 2 +- commands/label_rm.go | 2 +- commands/ls-labels.go | 2 +- commands/ls.go | 2 +- commands/pull.go | 2 +- commands/push.go | 2 +- commands/root.go | 2 +- commands/select.go | 2 +- commands/show.go | 2 +- commands/status.go | 2 +- commands/status_close.go | 2 +- commands/status_open.go | 2 +- commands/termui.go | 2 +- commands/title.go | 2 +- commands/title_edit.go | 2 +- commands/user.go | 2 +- commands/user_create.go | 2 +- commands/user_list.go | 2 +- commands/version.go | 2 +- commands/webui.go | 2 +- doc/man/git-bug-ls-id.1 | 29 +++++++++++++++++++++++ doc/md/git-bug.md | 38 +++++++++++++++--------------- doc/md/git-bug_add.md | 6 ++--- doc/md/git-bug_bridge.md | 12 +++++----- doc/md/git-bug_bridge_configure.md | 6 ++--- doc/md/git-bug_bridge_pull.md | 6 ++--- doc/md/git-bug_bridge_rm.md | 6 ++--- doc/md/git-bug_commands.md | 6 ++--- doc/md/git-bug_comment.md | 8 +++---- doc/md/git-bug_comment_add.md | 6 ++--- doc/md/git-bug_deselect.md | 6 ++--- doc/md/git-bug_label.md | 10 ++++---- doc/md/git-bug_label_add.md | 6 ++--- doc/md/git-bug_label_rm.md | 6 ++--- doc/md/git-bug_ls-id.md | 22 +++++++++++++++++ doc/md/git-bug_ls-label.md | 4 ++-- doc/md/git-bug_ls.md | 4 ++-- doc/md/git-bug_pull.md | 6 ++--- doc/md/git-bug_push.md | 6 ++--- doc/md/git-bug_select.md | 6 ++--- doc/md/git-bug_show.md | 6 ++--- doc/md/git-bug_status.md | 10 ++++---- doc/md/git-bug_status_close.md | 6 ++--- doc/md/git-bug_status_open.md | 6 ++--- doc/md/git-bug_termui.md | 6 ++--- doc/md/git-bug_title.md | 8 +++---- doc/md/git-bug_title_edit.md | 6 ++--- doc/md/git-bug_user.md | 11 +++++---- doc/md/git-bug_user_create.md | 6 ++--- doc/md/git-bug_user_ls.md | 6 ++--- doc/md/git-bug_version.md | 6 ++--- doc/md/git-bug_webui.md | 6 ++--- 62 files changed, 197 insertions(+), 145 deletions(-) create mode 100644 doc/man/git-bug-ls-id.1 create mode 100644 doc/md/git-bug_ls-id.md diff --git a/commands/add.go b/commands/add.go index 54ede1260daaa6f3e0cd9d12725ec9ca970a7a3b..ea40227cb397972a3bb6f81e590dce01e3444ca1 100644 --- a/commands/add.go +++ b/commands/add.go @@ -56,7 +56,7 @@ func runAddBug(cmd *cobra.Command, args []string) error { var addCmd = &cobra.Command{ Use: "add", - Short: "Create a new bug", + Short: "Create a new bug.", PreRunE: loadRepo, RunE: runAddBug, } diff --git a/commands/bridge.go b/commands/bridge.go index a473776d7eaa1692e93d5ddb355c1ffe3da4b0fc..2566fd068b07e4e2ba654e379b7f059c7eb97deb 100644 --- a/commands/bridge.go +++ b/commands/bridge.go @@ -31,7 +31,7 @@ func runBridge(cmd *cobra.Command, args []string) error { var bridgeCmd = &cobra.Command{ Use: "bridge", - Short: "Configure and use bridges to other bug trackers", + Short: "Configure and use bridges to other bug trackers.", PreRunE: loadRepo, RunE: runBridge, Args: cobra.NoArgs, diff --git a/commands/bridge_configure.go b/commands/bridge_configure.go index ef499f1ff59b97dee3fe05cc98fe6706ca228c5a..ce10d9af69a3bebd3dbb18c150332f3397775eff 100644 --- a/commands/bridge_configure.go +++ b/commands/bridge_configure.go @@ -91,7 +91,7 @@ func promptName() (string, error) { var bridgeConfigureCmd = &cobra.Command{ Use: "configure", - Short: "Configure a new bridge", + Short: "Configure a new bridge.", PreRunE: loadRepo, RunE: runBridgeConfigure, } diff --git a/commands/bridge_pull.go b/commands/bridge_pull.go index 669a67133b0ddd6b26386c7bf23d7d0fda841368..9b25147908e44183007cdc21af7f227a81cc15b0 100644 --- a/commands/bridge_pull.go +++ b/commands/bridge_pull.go @@ -38,7 +38,7 @@ func runBridgePull(cmd *cobra.Command, args []string) error { var bridgePullCmd = &cobra.Command{ Use: "pull []", - Short: "Pull updates", + Short: "Pull updates.", PreRunE: loadRepo, RunE: runBridgePull, } diff --git a/commands/bridge_rm.go b/commands/bridge_rm.go index 172fc0d8d2ff214789e69f80565542e787679ed6..80a831ff3e626479345625f472adb4626333154d 100644 --- a/commands/bridge_rm.go +++ b/commands/bridge_rm.go @@ -25,7 +25,7 @@ func runBridgeRm(cmd *cobra.Command, args []string) error { var bridgeRmCmd = &cobra.Command{ Use: "rm name ", - Short: "Delete a configured bridge", + Short: "Delete a configured bridge.", PreRunE: loadRepo, RunE: runBridgeRm, Args: cobra.ExactArgs(1), diff --git a/commands/commands.go b/commands/commands.go index e48cd542d85e49757d58086ed4389d7d8b74eb89..a30c38a50971f8e930aac24ccc6268dd8bd5bd42 100644 --- a/commands/commands.go +++ b/commands/commands.go @@ -61,7 +61,7 @@ func runCommands(cmd *cobra.Command, args []string) error { var commandsCmd = &cobra.Command{ Use: "commands [