From 6c9f1f1c6eea1d9baa46e1c06ec52d7b6fdb7b9d Mon Sep 17 00:00:00 2001 From: Jose Gabriel Companioni Benitez <53531665+elC0mpa@users.noreply.github.com> Date: Tue, 16 Sep 2025 09:37:14 +0400 Subject: [PATCH] fix: cli display parity chars --- docs/source/mr/reopen.md | 12 ++++++------ docs/source/mr/revoke.md | 18 +++++++++--------- docs/source/mr/subscribe.md | 12 ++++++------ docs/source/mr/unsubscribe.md | 12 ++++++------ docs/source/mr/update.md | 16 ++++++++-------- internal/commands/mr/reopen/mr_reopen.go | 12 ++++++------ internal/commands/mr/revoke/mr_revoke.go | 16 ++++++++-------- internal/commands/mr/subscribe/mr_subscribe.go | 12 ++++++------ .../commands/mr/unsubscribe/mr_unsubscribe.go | 12 ++++++------ internal/commands/mr/update/mr_update.go | 16 ++++++++-------- 10 files changed, 69 insertions(+), 69 deletions(-) diff --git a/docs/source/mr/reopen.md b/docs/source/mr/reopen.md index 424f11b32..ae089e016 100644 --- a/docs/source/mr/reopen.md +++ b/docs/source/mr/reopen.md @@ -26,14 +26,14 @@ open ## Examples ```console -Reopen merge request 123 -- glab mr reopen 123 +# Reopen merge request 123 +$ glab mr reopen 123 -Reopen merge requests 123, 456, and 789 -- glab mr reopen 123 456 789 +# Reopen merge requests 123, 456, and 789 +$ glab mr reopen 123 456 789 -Reopen merge requests from branches branch-1 and branch-2 -- glab mr reopen branch-1 branch-2 +# Reopen merge requests from branches branch-1 and branch-2 +$ glab mr reopen branch-1 branch-2 ``` diff --git a/docs/source/mr/revoke.md b/docs/source/mr/revoke.md index 6dca0a926..16a0b9d61 100644 --- a/docs/source/mr/revoke.md +++ b/docs/source/mr/revoke.md @@ -26,15 +26,15 @@ unapprove ## Examples ```console -Revoke approval on a merge request -- glab mr revoke 123 -- glab mr unapprove 123 -- glab mr revoke branch - -Revoke approval on the currently checked out branch -- glab mr revoke -Revoke approval on merge request 123 on branch 456 -- glab mr revoke 123 branch 456 +# Revoke approval on a merge request +$ glab mr revoke 123 +$ glab mr unapprove 123 +$ glab mr revoke branch + +# Revoke approval on the currently checked out branch +$ glab mr revoke +# Revoke approval on merge request 123 on branch 456 +$ glab mr revoke 123 branch 456 ``` diff --git a/docs/source/mr/subscribe.md b/docs/source/mr/subscribe.md index 2e5b0a362..dbf63e3ae 100644 --- a/docs/source/mr/subscribe.md +++ b/docs/source/mr/subscribe.md @@ -26,13 +26,13 @@ sub ## Examples ```console -Subscribe to a merge request -- glab mr subscribe 123 -- glab mr sub 123 -- glab mr subscribe branch +# Subscribe to a merge request +$ glab mr subscribe 123 +$ glab mr sub 123 +$ glab mr subscribe branch -Subscribe to multiple merge requests -- glab mr subscribe 123 branch +# Subscribe to multiple merge requests +$ glab mr subscribe 123 branch ``` diff --git a/docs/source/mr/unsubscribe.md b/docs/source/mr/unsubscribe.md index 6c58bc5b1..0fa856e38 100644 --- a/docs/source/mr/unsubscribe.md +++ b/docs/source/mr/unsubscribe.md @@ -26,13 +26,13 @@ unsub ## Examples ```console -Unsubscribe from a merge request -- glab mr unsubscribe 123 -- glab mr unsub 123 -- glab mr unsubscribe branch +# Unsubscribe from a merge request +$ glab mr unsubscribe 123 +$ glab mr unsub 123 +$ glab mr unsubscribe branch -Unsubscribe from multiple merge requests -- glab mr unsubscribe 123 branch +# Unsubscribe from multiple merge requests +$ glab mr unsubscribe 123 branch ``` diff --git a/docs/source/mr/update.md b/docs/source/mr/update.md index c366e0ec0..dd0b1907d 100644 --- a/docs/source/mr/update.md +++ b/docs/source/mr/update.md @@ -20,17 +20,17 @@ glab mr update [ | ] [flags] ## Examples ```console -Mark a merge request as ready -- glab mr update 23 --ready +# Mark a merge request as ready +$ glab mr update 23 --ready -Mark a merge request as draft -- glab mr update 23 --draft +# Mark a merge request as draft +$ glab mr update 23 --draft -Updates the merge request for the current branch -- glab mr update --draft +# Updates the merge request for the current branch +$ glab mr update --draft -Update merge request with commit information -- glab mr update 23 --fill --fill-commit-body --yes +# Update merge request with commit information +$ glab mr update 23 --fill --fill-commit-body --yes ``` diff --git a/internal/commands/mr/reopen/mr_reopen.go b/internal/commands/mr/reopen/mr_reopen.go index 76d238718..dc9b99e66 100644 --- a/internal/commands/mr/reopen/mr_reopen.go +++ b/internal/commands/mr/reopen/mr_reopen.go @@ -19,14 +19,14 @@ func NewCmdReopen(f cmdutils.Factory) *cobra.Command { Use: "reopen [... | ...]", Short: `Reopen a merge request.`, Example: heredoc.Doc(` - Reopen merge request 123 - - glab mr reopen 123 + # Reopen merge request 123 + $ glab mr reopen 123 - Reopen merge requests 123, 456, and 789 - - glab mr reopen 123 456 789 + # Reopen merge requests 123, 456, and 789 + $ glab mr reopen 123 456 789 - Reopen merge requests from branches branch-1 and branch-2 - - glab mr reopen branch-1 branch-2 + # Reopen merge requests from branches branch-1 and branch-2 + $ glab mr reopen branch-1 branch-2 `), Aliases: []string{"open"}, Annotations: map[string]string{ diff --git a/internal/commands/mr/revoke/mr_revoke.go b/internal/commands/mr/revoke/mr_revoke.go index ed63f495f..fa366ed7b 100644 --- a/internal/commands/mr/revoke/mr_revoke.go +++ b/internal/commands/mr/revoke/mr_revoke.go @@ -19,15 +19,15 @@ func NewCmdRevoke(f cmdutils.Factory) *cobra.Command { Long: ``, Aliases: []string{"unapprove"}, Example: heredoc.Doc(` - Revoke approval on a merge request - - glab mr revoke 123 - - glab mr unapprove 123 - - glab mr revoke branch + # Revoke approval on a merge request + $ glab mr revoke 123 + $ glab mr unapprove 123 + $ glab mr revoke branch - Revoke approval on the currently checked out branch - - glab mr revoke - Revoke approval on merge request 123 on branch 456 - - glab mr revoke 123 branch 456 + # Revoke approval on the currently checked out branch + $ glab mr revoke + # Revoke approval on merge request 123 on branch 456 + $ glab mr revoke 123 branch 456 `), Annotations: map[string]string{ mcpannotations.Destructive: "true", diff --git a/internal/commands/mr/subscribe/mr_subscribe.go b/internal/commands/mr/subscribe/mr_subscribe.go index 68c08c66e..ff4e3d180 100644 --- a/internal/commands/mr/subscribe/mr_subscribe.go +++ b/internal/commands/mr/subscribe/mr_subscribe.go @@ -29,13 +29,13 @@ func NewCmdSubscribe(f cmdutils.Factory) *cobra.Command { Long: ``, Aliases: []string{"sub"}, Example: heredoc.Doc(` - Subscribe to a merge request - - glab mr subscribe 123 - - glab mr sub 123 - - glab mr subscribe branch + # Subscribe to a merge request + $ glab mr subscribe 123 + $ glab mr sub 123 + $ glab mr subscribe branch - Subscribe to multiple merge requests - - glab mr subscribe 123 branch + # Subscribe to multiple merge requests + $ glab mr subscribe 123 branch `), Annotations: map[string]string{ mcpannotations.Destructive: "true", diff --git a/internal/commands/mr/unsubscribe/mr_unsubscribe.go b/internal/commands/mr/unsubscribe/mr_unsubscribe.go index 8415ac0ef..bdebfd990 100644 --- a/internal/commands/mr/unsubscribe/mr_unsubscribe.go +++ b/internal/commands/mr/unsubscribe/mr_unsubscribe.go @@ -29,13 +29,13 @@ func NewCmdUnsubscribe(f cmdutils.Factory) *cobra.Command { Long: ``, Aliases: []string{"unsub"}, Example: heredoc.Doc(` - Unsubscribe from a merge request - - glab mr unsubscribe 123 - - glab mr unsub 123 - - glab mr unsubscribe branch + # Unsubscribe from a merge request + $ glab mr unsubscribe 123 + $ glab mr unsub 123 + $ glab mr unsubscribe branch - Unsubscribe from multiple merge requests - - glab mr unsubscribe 123 branch + # Unsubscribe from multiple merge requests + $ glab mr unsubscribe 123 branch `), Annotations: map[string]string{ mcpannotations.Destructive: "true", diff --git a/internal/commands/mr/update/mr_update.go b/internal/commands/mr/update/mr_update.go index c87547f56..7a66ed44d 100644 --- a/internal/commands/mr/update/mr_update.go +++ b/internal/commands/mr/update/mr_update.go @@ -24,17 +24,17 @@ func NewCmdUpdate(f cmdutils.Factory) *cobra.Command { Short: `Update a merge request.`, Long: ``, Example: heredoc.Doc(` - Mark a merge request as ready - - glab mr update 23 --ready + # Mark a merge request as ready + $ glab mr update 23 --ready - Mark a merge request as draft - - glab mr update 23 --draft + # Mark a merge request as draft + $ glab mr update 23 --draft - Updates the merge request for the current branch - - glab mr update --draft + # Updates the merge request for the current branch + $ glab mr update --draft - Update merge request with commit information - - glab mr update 23 --fill --fill-commit-body --yes + # Update merge request with commit information + $ glab mr update 23 --fill --fill-commit-body --yes `), Args: cobra.MaximumNArgs(1), Annotations: map[string]string{ -- GitLab