MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / isUnderlineHeader

Function isUnderlineHeader

app/cli/documentation/generate.go:151–153  ·  view source on GitHub ↗

isUnderlineHeader checks if a line is an underline-style header (--- or ===).

(line string)

Source from the content-addressed store, hash-verified

149
150// isUnderlineHeader checks if a line is an underline-style header (--- or ===).
151func isUnderlineHeader(line string) bool {
152 return regexp.MustCompile(`^[-=]+$`).MatchString(line)
153}
154
155// isPluginCommand checks if a command is from a plugin by looking for the plugin signature in the Long description
156func isPluginCommand(cmd *cobra.Command) bool {

Callers 1

processCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected