MCPcopy Create free account
hub / github.com/chrislusf/gleam / GetCommand

Method GetCommand

script/shell.go:26–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24}
25
26func (c *ShellScript) GetCommand() *Command {
27 code := c.operations[0].Code
28 return &Command{
29 Path: "sh",
30 Args: []string{"-c", code},
31 Env: c.env,
32 }
33}
34
35func (c *ShellScript) Pipe(code string) *ShellScript {
36 c.operations = append(c.operations, &Operation{

Callers 1

testShellScriptFunction · 0.95

Calls

no outgoing calls

Tested by 1

testShellScriptFunction · 0.76