MCPcopy Index your code
hub / github.com/coder/coder / CommandContext

Function CommandContext

pty/start.go:35–42  ·  view source on GitHub ↗
(ctx context.Context, name string, arg ...string)

Source from the content-addressed store, hash-verified

33}
34
35func CommandContext(ctx context.Context, name string, arg ...string) *Cmd {
36 return &Cmd{
37 Context: ctx,
38 Path: name,
39 Args: append([]string{name}, arg...),
40 Env: make([]string, 0),
41 }
42}
43
44func Command(name string, arg ...string) *Cmd {
45 return CommandContext(context.Background(), name, arg...)

Callers 9

TestSSH_ForwardGPGFunction · 0.92
Test_Start_copyFunction · 0.92
Test_Start_truncationFunction · 0.92
PTYCommandContextMethod · 0.92
PTYCommandContextMethod · 0.92
PTYCommandContextMethod · 0.92
Test_sessionStart_orphanFunction · 0.92
CommandFunction · 0.85

Calls

no outgoing calls

Tested by 6

TestSSH_ForwardGPGFunction · 0.74
Test_Start_copyFunction · 0.74
Test_Start_truncationFunction · 0.74
PTYCommandContextMethod · 0.74
Test_sessionStart_orphanFunction · 0.74