modulepackage
0.0.0-20191115171910-c688067f12d3
Repository: https://github.com/taskcluster/shell.git
Documentation: pkg.go.dev
# README
shell
Escape command line parameters to be executed on the shell.
Ported from https://github.com/xxorax/node-shell-escape.
Usage
package main
import (
"fmt"
"github.com/taskcluster/shell"
)
func main() {
fmt.Println(
shell.Escape(
"curl",
"-v",
"-H",
"Location;",
"-H",
"User-Agent: dave#10",
"http://www.daveeddy.com/?name=dave&age=24",
),
)
}
produces...
curl -v -H 'Location;' -H 'User-Agent: dave#10' 'http://www.daveeddy.com/?name=dave&age=24'
# Functions
No description provided by the author