MCPcopy Create free account
hub / github.com/coder/envbuilder / Markdown

Method Markdown

options/options.go:555–582  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

553}
554
555func (o *Options) Markdown() string {
556 cliOptions := skipDeprecatedOptions(o.CLI())
557
558 var sb strings.Builder
559 _, _ = sb.WriteString("| Flag | Environment variable | Default | Description |\n")
560 _, _ = sb.WriteString("| - | - | - | - |\n")
561
562 for _, opt := range cliOptions {
563 if opt.Hidden {
564 continue
565 }
566 d := opt.Default
567 if d != "" {
568 d = "`" + d + "`"
569 }
570 _, _ = sb.WriteString("| `--")
571 _, _ = sb.WriteString(opt.Flag)
572 _, _ = sb.WriteString("` | `")
573 _, _ = sb.WriteString(opt.Env)
574 _, _ = sb.WriteString("` | ")
575 _, _ = sb.WriteString(d)
576 _, _ = sb.WriteString(" | ")
577 _, _ = sb.WriteString(opt.Description)
578 _, _ = sb.WriteString(" |\n")
579 }
580
581 return sb.String()
582}
583
584func (o *Options) CABundle() ([]byte, error) {
585 if o.SSLCertBase64 == "" {

Callers 1

mainFunction · 0.95

Calls 2

CLIMethod · 0.95
skipDeprecatedOptionsFunction · 0.85

Tested by

no test coverage detected