(t testing.TB, cmd *serpent.Command, args ...string, )
| 101 | } |
| 102 | |
| 103 | func NewWithDefaultKeyringCommand(t testing.TB, cmd *serpent.Command, args ...string, |
| 104 | ) (*serpent.Invocation, config.Root) { |
| 105 | configDir := config.Root(t.TempDir()) |
| 106 | invArgs := append([]string{"--global-config", string(configDir)}, args...) |
| 107 | return setupInvocation(t, cmd, invArgs...), configDir |
| 108 | } |
| 109 | |
| 110 | // SetupConfig applies the URL and SessionToken of the client to the config. |
| 111 | func SetupConfig(t *testing.T, client *codersdk.Client, root config.Root) { |