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

Method CreateComment

internal/cli/client.go:384–388  ·  view source on GitHub ↗
(wsSlug, itemSlug string, input models.CommentCreate)

Source from the content-addressed store, hash-verified

382}
383
384func (c *Client) CreateComment(wsSlug, itemSlug string, input models.CommentCreate) (*models.Comment, error) {
385 var result models.Comment
386 err := c.post("/workspaces/"+wsSlug+"/items/"+itemSlug+"/comments", input, &result)
387 return &result, wrapItemNotFound(err, itemSlug, wsSlug)
388}
389
390func (c *Client) DeleteComment(wsSlug, commentID string) error {
391 return c.delete("/workspaces/" + wsSlug + "/comments/" + commentID)

Callers 2

TestGetItemWrapsNotFoundFunction · 0.45
commentCmdFunction · 0.45

Calls 2

postMethod · 0.95
wrapItemNotFoundFunction · 0.85

Tested by 1

TestGetItemWrapsNotFoundFunction · 0.36