mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-15 13:00:03 +00:00
Update cheatsheets
This commit is contained in:
22
tldr/boxes
22
tldr/boxes
@@ -12,26 +12,26 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`echo "{{string}}" | boxes`
|
||||
|
||||
- [r]emove a box from a string:
|
||||
- Remove a box from a string:
|
||||
|
||||
`echo "{{string}}" | boxes -r`
|
||||
`echo "{{string}}" | boxes {{[-r|--remove]}}`
|
||||
|
||||
- Specify the box [d]esign:
|
||||
- Specify the box design:
|
||||
|
||||
`echo "{{string}}" | boxes -d {{parchment}}`
|
||||
`echo "{{string}}" | boxes {{[-d|--design]}} {{parchment}}`
|
||||
|
||||
- Specify the box [s]ize (in columns by lines):
|
||||
- Specify the box size (in columns by lines):
|
||||
|
||||
`echo "{{string}}" | boxes -s {{10}}x{{5}}`
|
||||
`echo "{{string}}" | boxes {{[-s|--size]}} {{10}}x{{5}}`
|
||||
|
||||
- [a]lign the box text [h]orizonally (at [l]eft, [c]enter or [r]ight):
|
||||
- Align the box text [h]orizonally (at [l]eft, [c]enter or [r]ight):
|
||||
|
||||
`echo "{{string}}" | boxes -a h{{l|c|r}}`
|
||||
`echo "{{string}}" | boxes {{[-a|--align]}} h{{l|c|r}}`
|
||||
|
||||
- [a]lign the box text [v]ertically (at [t]op, [c]enter or [b]ottom):
|
||||
- Align the box text [v]ertically (at [t]op, [c]enter or [b]ottom):
|
||||
|
||||
`echo "{{string}}" | boxes -a v{{t|c|b}}`
|
||||
`echo "{{string}}" | boxes {{[-a|--align]}} v{{t|c|b}}`
|
||||
|
||||
- [j]ustify the box text (at [l]eft, [c]enter or [r]ight):
|
||||
|
||||
`echo "{{string}}" | boxes -a j{{l|c|r}}{{vt}}`
|
||||
`echo "{{string}}" | boxes {{[-a|--align]}} j{{l|c|r}}{{vt}}`
|
||||
|
||||
Reference in New Issue
Block a user