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

Method GetLibraryEntry

internal/cli/client.go:1822–1827  ·  view source on GitHub ↗

GetLibraryEntry fetches one library entry by exact title match. Conventions- first precedence — a title that resolves to a convention is returned as one even if a playbook of the same title existed. Returns *APIError with Code="not_found" when the title doesn't match anything; CLI callers can type-a

(title string)

Source from the content-addressed store, hash-verified

1820// type-assert to detect that case. PLAN-1560 / TASK-1561 (endpoint) +
1821// TASK-1562 (CLI plumbing).
1822func (c *Client) GetLibraryEntry(title string) (*LibraryEntryResponse, error) {
1823 params := url.Values{}
1824 params.Set("title", title)
1825 var result LibraryEntryResponse
1826 return &result, c.get("/library/entry?"+params.Encode(), &result)
1827}
1828
1829// --- Webhooks ---
1830

Callers 1

libraryGetCmdFunction · 0.80

Calls 3

getMethod · 0.95
EncodeMethod · 0.65
SetMethod · 0.45

Tested by

no test coverage detected