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

Function docsFormatColor

internal/cmd/docs_format.go:507–513  ·  view source on GitHub ↗
(hex, flag string)

Source from the content-addressed store, hash-verified

505}
506
507func docsFormatColor(hex, flag string) (*docs.OptionalColor, error) {
508 color, err := docsformat.Color(hex, flag)
509 if err != nil {
510 return nil, usage(err.Error())
511 }
512 return color, nil
513}
514
515func (f DocsFormatFlags) withLinkFlags(link string, noLink bool) DocsFormatFlags {
516 f.link = link

Callers 3

buildCellStyleMethod · 0.85
parseDocsTableCellBorderFunction · 0.85
buildTextStyleRequestMethod · 0.85

Calls 3

ColorFunction · 0.92
usageFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected