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

Method String

cli/whoami.go:23–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21}
22
23func (r whoamiRow) String() string {
24 return fmt.Sprintf(
25 Caret+"Coder is running at %s, You're authenticated as %s !\n",
26 pretty.Sprint(cliui.DefaultStyles.Keyword, r.URL),
27 pretty.Sprint(cliui.DefaultStyles.Keyword, r.Username),
28 )
29}
30
31func (r *RootCmd) whoami() *serpent.Command {
32 formatter := cliui.NewOutputFormatter(

Callers 15

StringCharsetFunction · 0.45
BenchmarkStringUnsafe20Function · 0.45
BenchmarkStringBigint20Function · 0.45
TestUserDeleteFunction · 0.45
TestBuildProvidersFunction · 0.45
TestExpTaskListFunction · 0.45
TestWorkspaceAgentFunction · 0.45
oidcAuthLinksFunction · 0.45
createOIDCConfigFunction · 0.45
enablePrometheusFunction · 0.45

Calls

no outgoing calls

Tested by 15

BenchmarkStringUnsafe20Function · 0.36
BenchmarkStringBigint20Function · 0.36
TestUserDeleteFunction · 0.36
TestBuildProvidersFunction · 0.36
TestExpTaskListFunction · 0.36
TestWorkspaceAgentFunction · 0.36
TestBuildWorkspaceLinkFunction · 0.36
TestCoderConnectStdioFunction · 0.36
setupTestListenerFunction · 0.36