Every option with its default and where else it's set, linking to its section, so the reference reads as a table of contents first.
- commit
- 26b999833e9afb5df66e7b39753d97c172e13116
- parent
- e231576fbfb3129418ed17d1b6ddc8912bc54d04
- author
- Dami <dami.etoile@gmail.com>
| M | docs/ | 21 | +++++++++++++++++++++ |
| M | internal/ | 20 | ++++++++++++++++++++ |
@@ -60,6 +60,27 @@ start.
6060 6161 <!-- Generated from internal/config/registry.go by `go test ./internal/config -update-docs`. Don't edit below. -->6262 63+| Option | Default | Environment, flag |64+|---|---|---|65+| [`theme`](#theme) | `terminal` | `O12_THEME`, `--theme` |66+| [`chart-images`](#chart-images) | `true` | `O12_CHART_IMAGES` |67+| [`notifications`](#notifications) | `true` | `O12_NOTIFICATIONS` |68+| [`keymap`](#keymap) | `default` | `O12_KEYMAP` |69+| [`max-cells`](#max-cells) | `2000000` | `O12_MAX_CELLS` |70+| [`jev-api-key-command`](#jev-api-key-command) | | |71+| [`jev-credential-store`](#jev-credential-store) | `true` | `O12_JEV_CREDENTIAL_STORE` |72+| [`jev-base-url`](#jev-base-url) | | `TYPESAFE_BASE_URL` |73+| [`jev-model`](#jev-model) | | `TYPESAFE_DEFAULT_MODEL` |74+| [`log-file`](#log-file) | | `O12_LOG`, `--log` |75+| [`log-level`](#log-level) | `info` | `O12_LOG_LEVEL` |76+| [`otlp-endpoint`](#otlp-endpoint) | | `OTEL_EXPORTER_OTLP_ENDPOINT`, `--otlp` |77+| [`serve-listen`](#serve-listen) | `127.0.0.1:2312` | |78+| [`serve-authorized-keys`](#serve-authorized-keys) | `~/.ssh/authorized_keys` | |79+| [`serve-host-key`](#serve-host-key) | | |80+| [`serve-idle-timeout`](#serve-idle-timeout) | `30m` | |81+| [`serve-max-sessions`](#serve-max-sessions) | `8` | |82+| [`config-file`](#config-file) | | |83+6384 ### Appearance6485 6586 #### `theme`@@ -12,6 +12,26 @@ const DocsMarker = "<!-- Generated from internal/config/registry.go by `go test
1212 // Reference is the option reference in Markdown, one section per group.1313 func Reference() string {1414 var b strings.Builder15+ b.WriteString("\n| Option | Default | Environment, flag |\n|---|---|---|\n")16+ for _, g := range Groups {17+ for _, o := range Options {18+ if o.Group != g {19+ continue20+ }21+ def := ""22+ if o.Default != "" {23+ def = "`" + o.Default + "`"24+ }25+ var via []string26+ for _, e := range o.Env {27+ via = append(via, "`"+e+"`")28+ }29+ if o.Flag != "" {30+ via = append(via, "`"+o.Flag+"`")31+ }32+ fmt.Fprintf(&b, "| [`%s`](#%s) | %s | %s |\n", o.Name, o.Name, def, strings.Join(via, ", "))33+ }34+ }1535 for _, g := range Groups {1636 fmt.Fprintf(&b, "\n### %s\n", g)1737 for _, o := range Options {