From 9b7d53501fced9598721339ace450a5ae71956f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Wed, 3 Nov 2021 15:39:10 +0100 Subject: [PATCH 1/6] Make sure URLs in man pages render as hyperlinks on the web --- pkg/cmd/codespace/ssh.go | 2 +- pkg/cmd/root/help_topic.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/cmd/codespace/ssh.go b/pkg/cmd/codespace/ssh.go index 9c0ae7f1b..efa780999 100644 --- a/pkg/cmd/codespace/ssh.go +++ b/pkg/cmd/codespace/ssh.go @@ -181,7 +181,7 @@ globs, environment variables, and backticks, as in these examples: $ gh codespace cp -e 'remote:/workspace/myproj/go.{mod,sum}' ./gofiles/ For security, do not use the -e flag with arguments provided by untrusted -users; see https://lwn.net/Articles/835962/ for discussion. +users; see for discussion. `, RunE: func(cmd *cobra.Command, args []string) error { return app.Copy(cmd.Context(), args, opts) diff --git a/pkg/cmd/root/help_topic.go b/pkg/cmd/root/help_topic.go index f94f577da..c7d9bffae 100644 --- a/pkg/cmd/root/help_topic.go +++ b/pkg/cmd/root/help_topic.go @@ -54,7 +54,7 @@ var HelpTopics = map[string]map[string]string{ to, e.g. "less". GLAMOUR_STYLE: the style to use for rendering Markdown. See - https://github.com/charmbracelet/glamour#styles + NO_COLOR: set to any value to avoid printing ANSI escape sequences for color output. @@ -90,14 +90,14 @@ var HelpTopics = map[string]map[string]string{ The %[1]s--jq%[1]s option accepts a query in jq syntax and will print only the resulting values that match the query. This is equivalent to piping the output to %[1]sjq -r%[1]s, but does not require the jq utility to be installed on the system. To learn more - about the query syntax, see: https://stedolan.github.io/jq/manual/v1.6/ + about the query syntax, see: With %[1]s--template%[1]s, the provided Go template is rendered using the JSON data as input. - For the syntax of Go templates, see: https://golang.org/pkg/text/template/ + For the syntax of Go templates, see: The following functions are available in templates: - %[1]sautocolor%[1]s: like %[1]scolor%[1]s, but only emits color to terminals - - %[1]scolor