MCPcopy Create free account
hub / github.com/AndroidPoet/playconsole-cli / GetEdit

Method GetEdit

internal/api/client.go:187–202  ·  view source on GitHub ↗

GetEdit returns an existing edit by ID

(editID string)

Source from the content-addressed store, hash-verified

185
186// GetEdit returns an existing edit by ID
187func (c *Client) GetEdit(editID string) (*Edit, error) {
188 ctx, cancel := c.Context()
189
190 edit, err := c.service.Edits.Get(c.packageName, editID).Context(ctx).Do()
191 if err != nil {
192 cancel()
193 return nil, fmt.Errorf("failed to get edit: %w", err)
194 }
195
196 return &Edit{
197 client: c,
198 editID: edit.Id,
199 ctx: ctx,
200 cancel: cancel,
201 }, nil
202}
203
204// ID returns the edit ID
205func (e *Edit) ID() string {

Callers 5

runGetFunction · 0.95
runValidateFunction · 0.95
runCommitFunction · 0.95
runDeleteFunction · 0.95
runDiffFunction · 0.95

Calls 2

ContextMethod · 0.95
ContextMethod · 0.45

Tested by

no test coverage detected