Skip to content

Commit

Permalink
Glamour Support can now be disabled with -G instead of enabled with -g
Browse files Browse the repository at this point in the history
  • Loading branch information
craftamap committed Jan 13, 2020
1 parent c3a64b0 commit 5acfd58
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/issue_show.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ var issueShowCmd = &cobra.Command{
log.Fatal(err)
}

glamour_e, _ := cmd.Flags().GetBool("glamour")
glamour_disabled, _ := cmd.Flags().GetBool("no-glamour")

printIssue(issue, rn, glamour_e)
printIssue(issue, rn, !glamour_disabled)

showComments, _ := cmd.Flags().GetBool("comments")
if showComments {
Expand Down Expand Up @@ -145,6 +145,6 @@ func init() {
issueShowCmd.MarkZshCompPositionalArgumentCustom(2, "__lab_completion_issue $words[2]")
issueShowCmd.MarkZshCompPositionalArgumentCustom(1, "__lab_completion_issue")
issueShowCmd.Flags().BoolP("comments", "c", false, "Show comments for the issue")
issueShowCmd.Flags().BoolP("glamour", "g", false, "Use glamour to print the issue description")
issueShowCmd.Flags().BoolP("no-glamour", "G", false, "Don't use glamour to print the issue description")
issueCmd.AddCommand(issueShowCmd)
}

0 comments on commit 5acfd58

Please sign in to comment.