MCPcopy Create free account
hub / github.com/openclaw/gogcli / insertImages

Method insertImages

internal/cmd/docs.go:342–348  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

340// insertImages performs pass 2: reads back the created doc, resolves image URLs,
341// and replaces placeholder text with inline images.
342func (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
350type DocsCopyCmd struct {
351 DocID string `arg:"" name:"docId" help:"Doc ID"`

Callers 1

RunMethod · 0.95

Calls 2

docsServiceFunction · 0.85
insertImagesIntoDocsFunction · 0.85

Tested by

no test coverage detected