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

Function execArgs

agent/agentexec/cli_linux_test.go:231–241  ·  view source on GitHub ↗
(oom int, nice int)

Source from the content-addressed store, hash-verified

229}
230
231func execArgs(oom int, nice int) []string {
232 execArgs := []string{"agent-exec"}
233 if oom != 0 {
234 execArgs = append(execArgs, fmt.Sprintf("--coder-oom=%d", oom))
235 }
236 if nice != 0 {
237 execArgs = append(execArgs, fmt.Sprintf("--coder-nice=%d", nice))
238 }
239 execArgs = append(execArgs, "--")
240 return execArgs
241}
242
243func setCaps(t *testing.T, bin string, caps ...string) error {
244 t.Helper()

Callers 1

binCmdFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected