summaryrefslogtreecommitdiff
path: root/vendor/github.com/kballard/go-shellquote/README
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-03-08 11:45:15 +0100
committerLibravatar GitHub <noreply@github.com>2024-03-08 11:45:15 +0100
commitebdee5aed862e88e26426b05e50f730c3049a0d7 (patch)
treeb1b25919fb3afb4068f767213624e329ca31499c /vendor/github.com/kballard/go-shellquote/README
parent[docs] Add note about privileged ports (#2735) (diff)
downloadgotosocial-ebdee5aed862e88e26426b05e50f730c3049a0d7.tar.xz
[chore] Downgrade sqlite v1.29.2 -> v1.28.0 (#2736)
* [chore] Downgrade sqlite v1.29.2 -> v1.29.0 * go down to v1.28.0
Diffstat (limited to 'vendor/github.com/kballard/go-shellquote/README')
-rw-r--r--vendor/github.com/kballard/go-shellquote/README36
1 files changed, 36 insertions, 0 deletions
diff --git a/vendor/github.com/kballard/go-shellquote/README b/vendor/github.com/kballard/go-shellquote/README
new file mode 100644
index 000000000..4d34e87af
--- /dev/null
+++ b/vendor/github.com/kballard/go-shellquote/README
@@ -0,0 +1,36 @@
+PACKAGE
+
+package shellquote
+ import "github.com/kballard/go-shellquote"
+
+ Shellquote provides utilities for joining/splitting strings using sh's
+ word-splitting rules.
+
+VARIABLES
+
+var (
+ UnterminatedSingleQuoteError = errors.New("Unterminated single-quoted string")
+ UnterminatedDoubleQuoteError = errors.New("Unterminated double-quoted string")
+ UnterminatedEscapeError = errors.New("Unterminated backslash-escape")
+)
+
+
+FUNCTIONS
+
+func Join(args ...string) string
+ Join quotes each argument and joins them with a space. If passed to
+ /bin/sh, the resulting string will be split back into the original
+ arguments.
+
+func Split(input string) (words []string, err error)
+ Split splits a string according to /bin/sh's word-splitting rules. It
+ supports backslash-escapes, single-quotes, and double-quotes. Notably it
+ does not support the $'' style of quoting. It also doesn't attempt to
+ perform any other sort of expansion, including brace expansion, shell
+ expansion, or pathname expansion.
+
+ If the given input has an unterminated quoted string or ends in a
+ backslash-escape, one of UnterminatedSingleQuoteError,
+ UnterminatedDoubleQuoteError, or UnterminatedEscapeError is returned.
+
+