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

Method CreateEdit

internal/api/client.go:169–184  ·  view source on GitHub ↗

CreateEdit creates a new edit session

()

Source from the content-addressed store, hash-verified

167
168// CreateEdit creates a new edit session
169func (c *Client) CreateEdit() (*Edit, error) {
170 ctx, cancel := c.Context()
171
172 edit, err := c.service.Edits.Insert(c.packageName, nil).Context(ctx).Do()
173 if err != nil {
174 cancel()
175 return nil, fmt.Errorf("failed to create edit: %w", err)
176 }
177
178 return &Edit{
179 client: c,
180 editID: edit.Id,
181 ctx: ctx,
182 cancel: cancel,
183 }, nil
184}
185
186// GetEdit returns an existing edit by ID
187func (c *Client) GetEdit(editID string) (*Edit, error) {

Callers 15

runUploadFunction · 0.95
runListFunction · 0.95
runFindFunction · 0.95
runCreateFunction · 0.95
runUploadFunction · 0.95
runListFunction · 0.95
runGetFunction · 0.95
runDiffFunction · 0.95
runUploadFunction · 0.95
runListFunction · 0.95
runGetFunction · 0.95
runUpdateFunction · 0.95

Calls 2

ContextMethod · 0.95
ContextMethod · 0.45

Tested by

no test coverage detected