(cliContext *cli.Context)
| 109 | } |
| 110 | |
| 111 | func dumpConfig(cliContext *cli.Context) error { |
| 112 | config := defaultConfig() |
| 113 | ctx := cliContext.Context |
| 114 | |
| 115 | g := registry.Graph(func(*plugin.Registration) bool { return false }) |
| 116 | plugins := func() iter.Seq[plugin.Registration] { |
| 117 | return slices.Values(g) |
| 118 | } |
| 119 | if err := srvconfig.LoadConfigWithPlugins(ctx, cliContext.String("config"), plugins, config); err != nil && !os.IsNotExist(err) { |
| 120 | return err |
| 121 | } |
| 122 | |
| 123 | return outputConfig(ctx, config) |
| 124 | } |
| 125 | |
| 126 | func platformAgnosticDefaultConfig() *srvconfig.Config { |
| 127 | return &srvconfig.Config{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…