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

Function NewWithDefaultKeyringCommand

cli/clitest/clitest.go:103–108  ·  view source on GitHub ↗
(t testing.TB, cmd *serpent.Command, args ...string,
)

Source from the content-addressed store, hash-verified

101}
102
103func 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.
111func SetupConfig(t *testing.T, client *codersdk.Client, root config.Root) {

Callers 2

setupKeyringTestEnvFunction · 0.92
TestUseKeyringFunction · 0.92

Calls 3

RootTypeAlias · 0.92
setupInvocationFunction · 0.85
TempDirMethod · 0.65

Tested by 2

setupKeyringTestEnvFunction · 0.74
TestUseKeyringFunction · 0.74