mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat(agent): Allow specifying log directory via flag or env (#5915)
This commit is contained in:
@@ -53,6 +53,13 @@ func TestCommandHelp(t *testing.T) {
|
||||
"CODER_CACHE_DIRECTORY": "/tmp/coder-cli-test-cache",
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "coder agent --help",
|
||||
cmd: []string{"agent", "--help"},
|
||||
env: map[string]string{
|
||||
"CODER_AGENT_LOG_DIR": "/tmp",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
root := cli.Root(cli.AGPL())
|
||||
|
||||
Reference in New Issue
Block a user