MCPcopy Create free account
hub / github.com/google/gapid / With

Method With

core/os/shell/command.go:99–105  ·  view source on GitHub ↗

With returns a copy of the Cmd with the args added to the end of Args.

(args ...string)

Source from the content-addressed store, hash-verified

97
98// With returns a copy of the Cmd with the args added to the end of Args.
99func (cmd Cmd) With(args ...string) Cmd {
100 old := cmd.Args
101 cmd.Args = make([]string, len(cmd.Args)+len(args))
102 copy(cmd.Args, old)
103 copy(cmd.Args[len(old):], args)
104 return cmd
105}
106
107// Start executes the command and returns immediately.
108func (cmd Cmd) Start(ctx context.Context) (Process, error) {

Callers 4

ExampleCaptureFunction · 0.45
initFunction · 0.45
compareNodesFunction · 0.45
initFunction · 0.45

Calls

no outgoing calls

Tested by 1

ExampleCaptureFunction · 0.36