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

Function initAppearance

cli/root.go:1087–1094  ·  view source on GitHub ↗
(ctx context.Context, client *codersdk.Client)

Source from the content-addressed store, hash-verified

1085}
1086
1087func initAppearance(ctx context.Context, client *codersdk.Client) codersdk.AppearanceConfig {
1088 // best effort
1089 cfg, _ := client.Appearance(ctx)
1090 if cfg.DocsURL == "" {
1091 cfg.DocsURL = codersdk.DefaultDocsURL()
1092 }
1093 return cfg
1094}
1095
1096// createConfig consumes the global configuration flag to produce a config root.
1097func (r *RootCmd) createConfig() config.Root {

Callers 6

renameMethod · 0.85
portForwardMethod · 0.85
pingMethod · 0.85
sshMethod · 0.85
speedtestMethod · 0.85
openVSCodeMethod · 0.85

Calls 2

DefaultDocsURLFunction · 0.92
AppearanceMethod · 0.80

Tested by

no test coverage detected