(target docsFormatTargetRange, tabID string)
| 457 | } |
| 458 | |
| 459 | func (f DocsFormatFlags) buildTargetRequests(target docsFormatTargetRange, tabID string) ([]*docs.Request, error) { |
| 460 | options := f.options() |
| 461 | options.PostBulletParagraphStart = target.PostBulletStart |
| 462 | options.PostBulletParagraphEnd = target.PostBulletEnd |
| 463 | requests, err := docsformat.BuildRequests(options, target.StartIndex, target.EndIndex, tabID) |
| 464 | if err != nil { |
| 465 | return nil, usage(err.Error()) |
| 466 | } |
| 467 | return requests, nil |
| 468 | } |
| 469 | |
| 470 | func (f DocsFormatFlags) options() docsformat.Options { |
| 471 | return docsformat.Options{ |
no test coverage detected