insertImages performs pass 2: reads back the created doc, resolves image URLs, and replaces placeholder text with inline images.
(ctx context.Context, account string, docID string, images []markdownImage)
| 340 | // insertImages performs pass 2: reads back the created doc, resolves image URLs, |
| 341 | // and replaces placeholder text with inline images. |
| 342 | func (c *DocsCreateCmd) insertImages(ctx context.Context, account string, docID string, images []markdownImage) error { |
| 343 | svc, err := docsService(ctx, account) |
| 344 | if err != nil { |
| 345 | return err |
| 346 | } |
| 347 | return insertImagesIntoDocs(ctx, svc, docID, images, "") |
| 348 | } |
| 349 | |
| 350 | type DocsCopyCmd struct { |
| 351 | DocID string `arg:"" name:"docId" help:"Doc ID"` |
no test coverage detected