summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/kballard/go-shellquote/README
diff options
context:
space:
mode:
authorJonas Bröms <cez81@users.noreply.github.com>2017-10-25 21:27:25 +0200
committerLauris BH <lauris@nix.lv>2017-10-25 22:27:25 +0300
commite86a0bf3feab82c1b3439806245083dffb2f37c9 (patch)
tree8c47d111db8214dbbf3c291a43ad5793a49874b2 /vendor/github.com/kballard/go-shellquote/README
parent3af5b67ed030f84c7269d091add9e476537d30d7 (diff)
downloadgitea-e86a0bf3feab82c1b3439806245083dffb2f37c9.tar.gz
gitea-e86a0bf3feab82c1b3439806245083dffb2f37c9.zip
Add support for extra sendmail arguments (#2731)
* Add support for extra sendmail arguments * Sendmail args to exec.command should be a list * Add go-shellquote package * Use go-shellquote lib for parsing Sendmail args * Only parse if sendmail is configured
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 0000000000..4d34e87afc
--- /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.
+
+