MCPcopy Create free account
hub / github.com/Facets-cloud/flow / ShellQuote

Function ShellQuote

internal/spawner/spawner.go:157–159  ·  view source on GitHub ↗

ShellQuote is re-exported so callers don't need to import the chosen backend just to quote a value before handing it to SpawnTab. All backends quote identically (POSIX single-quote with embedded-quote escape), so we delegate to iterm's implementation.

(s string)

Source from the content-addressed store, hash-verified

155// backends quote identically (POSIX single-quote with embedded-quote
156// escape), so we delegate to iterm's implementation.
157func ShellQuote(s string) string {
158 return iterm.ShellQuote(s)
159}

Callers 3

LaunchCmdMethod · 0.92
ResumeCmdMethod · 0.92
TestShellQuoteParityFunction · 0.70

Calls 1

ShellQuoteFunction · 0.92

Tested by 1

TestShellQuoteParityFunction · 0.56