feat(agent): Allow specifying log directory via flag or env (#5915)

This commit is contained in:
Mathias Fredriksson
2023-01-30 18:39:52 +02:00
committed by GitHub
parent fa5b6125a9
commit f4d6afb01d
5 changed files with 114 additions and 4 deletions
+7
View File
@@ -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())