k3s/vendor/github.com/bhendo/go-powershell/utils/quote.go

10 lines
179 B
Go
Raw Normal View History

2019-09-05 18:55:53 +00:00
// Copyright (c) 2017 Gorillalabs. All rights reserved.
package utils
import "strings"
func QuoteArg(s string) string {
return "'" + strings.Replace(s, "'", "\"", -1) + "'"
}