MCPcopy Create free account
hub / github.com/openclaw/gogcli / formatAlignment

Function formatAlignment

internal/docsformat/format.go:529–542  ·  view source on GitHub ↗
(value string)

Source from the content-addressed store, hash-verified

527}
528
529func formatAlignment(value string) (string, error) {
530 switch strings.ToLower(strings.TrimSpace(value)) {
531 case "left", "start":
532 return "START", nil
533 case "center", "centre":
534 return "CENTER", nil
535 case "right", "end":
536 return "END", nil
537 case "justify", "justified":
538 return "JUSTIFIED", nil
539 default:
540 return "", ValidationError("--alignment must be left, center, right, justify, start, end, or justified")
541 }
542}
543
544func greyColor(intensity float64) *docs.OptionalColor {
545 return &docs.OptionalColor{Color: &docs.Color{RgbColor: &docs.RgbColor{

Callers 1

Calls 1

ValidationErrorTypeAlias · 0.70

Tested by

no test coverage detected