Skip to content

Commit 36545e6

Browse files
authored
Merge pull request #203 from dmur1/fix-ret-share-flag-format-#201
enclose the flag in backticks to get monospace formatting in discord
2 parents f5aaf17 + 376b652 commit 36545e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

commands/share.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ func Share(args []string) {
5656

5757
gistUrl := ""
5858
if len(files) > 0 {
59-
gistUrl = util.Gist(files)
59+
gistUrl = "**" + util.Gist(files) + "**"
6060
}
6161

62-
Chat([]string{fmt.Sprintf("🏁 %s\n**%s**", flag, gistUrl)})
62+
Chat([]string{fmt.Sprintf("🏁 `%s`\n%s", flag, gistUrl)})
6363
}

0 commit comments

Comments
 (0)