MCPcopy Index your code
hub / github.com/box-cli-maker/box-cli-maker / WrapContent

Method WrapContent

box.go:207–210  ·  view source on GitHub ↗

WrapContent enables or disables automatic wrapping of content. When enabled, content is wrapped to fit roughly two-thirds of the terminal width by default. For custom limits or non-TTY outputs, use WrapLimit instead.

(allow bool)

Source from the content-addressed store, hash-verified

205// width by default. For custom limits or non-TTY outputs, use WrapLimit
206// instead.
207func (b *Box) WrapContent(allow bool) *Box {
208 b.allowWrapping = allow
209 return b
210}
211
212// WrapLimit enables wrapping and sets an explicit maximum width for content.
213func (b *Box) WrapLimit(limit int) *Box {

Callers 7

TestBoxCopyFunction · 0.80
TestRenderWithWrapLimitFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by 4

TestBoxCopyFunction · 0.64
TestRenderWithWrapLimitFunction · 0.64