MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / CapabilityLine

Function CapabilityLine

internal/cmdhelp/json.go:27–29  ·  view source on GitHub ↗

CapabilityLine returns the single-line capability bit a conforming CLI emits in response to ` help --capabilities` (or the `--cmdhelp-capabilities` fallback form). Per spec §8: - Format: `cmdhelp/ . : ` - Single-line, parseable, stable across releases. - Th

(formats []string)

Source from the content-addressed store, hash-verified

25// imply any default set so different binaries can advertise different
26// surfaces (e.g. a future cmdhelp v0.2 might add formats).
27func CapabilityLine(formats []string) string {
28 return fmt.Sprintf("cmdhelp/%s: %s", Version, strings.Join(formats, ", "))
29}
30
31// Options configure a Build/EmitJSON call. All fields are optional except
32// Binary, which is used as the document's `binary` key.

Calls 1

JoinMethod · 0.80