From 23ffca45f7dd7042239e7b89f5907a5f1883324d Mon Sep 17 00:00:00 2001 From: chemotaxis Date: Mon, 19 Jul 2021 00:46:06 -0400 Subject: [PATCH] Unify use of single quotes to mark shell arguments and variables The first paragraph uses single quotes when referring to shell arguments and variables, but the rest of the docs use double quotes. This commit switches to using single quotes throughout the docs. I prefer to use single quotes inside string literals because Go uses double quotes to define a string literal. --- pkg/cmd/alias/set/set.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/alias/set/set.go b/pkg/cmd/alias/set/set.go index 83d07b229..bbc7480f2 100644 --- a/pkg/cmd/alias/set/set.go +++ b/pkg/cmd/alias/set/set.go @@ -43,9 +43,9 @@ func NewCmdSet(f *cmdutil.Factory, runF func(*SetOptions) error) *cobra.Command for commands with mixed quotes or multiple lines. If '--shell' is specified, the alias will be run through a shell interpreter (sh). This allows you - to compose commands with "|" or redirect with ">". Note that extra arguments following the alias + to compose commands with '|' or redirect with '>'. Note that extra arguments following the alias will not be automatically passed to the expanded expression. To have a shell alias receive - arguments, you must explicitly accept them using "$1", "$2", etc., or "$@" to accept all of them. + arguments, you must explicitly accept them using '$1', '$2', etc., or '$@' to accept all of them. Quotes must always be used when defining a command as in the examples unless you pass '-' as the expansion parameter and pipe your command to 'gh alias set'.