(ctx context.Context, client *codersdk.Client)
| 1085 | } |
| 1086 | |
| 1087 | func 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. |
| 1097 | func (r *RootCmd) createConfig() config.Root { |
no test coverage detected