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

Function isPluginCommand

app/cli/documentation/generate.go:156–158  ·  view source on GitHub ↗

isPluginCommand checks if a command is from a plugin by looking for the plugin signature in the Long description

(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

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 {
157 return strings.Contains(cmd.Long, "Provided by plugin:")
158}
159
160// processFinalDocument cleans up the final document by removing excessive newlines and headers.
161func processFinalDocument(content string) string {

Callers 2

mainFunction · 0.85
generateCommandDocsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected