Revert accidental merge of #7340

This reverts back to commit d8e2cac83e.
I accidentally did a 'git push' during code review.
This commit is contained in:
ridiculousfish
2020-09-19 19:31:30 -07:00
parent 32f8b0c531
commit 5c3571d626
4 changed files with 10 additions and 163 deletions

View File

@@ -1,52 +0,0 @@
string-pad - pad characters before and after string
===================================================
Synopsis
--------
.. BEGIN SYNOPSIS
::
string pad [(-r | --right)] [(-c | --char) CHAR] [(-w | --width) INTEGER] [STRING...]
.. END SYNOPSIS
Description
-----------
.. BEGIN DESCRIPTION
``string pad`` pads specified character before and after the string for each STRING.
The default behaviour is left padding with spaces and default width is the length of string (hence, no padding).
If ``-r`` or ``--right`` is given, only pad after string.
The ``-c`` or ``--char`` switch causes the characters in CHAR to be padded instead of default whitespace character.
If ``-w`` or ``--width`` is given, pad the string to given length. Width less than the string length will result in an unchanged string.
Exit status: 0 if string was padded or haven't changed, or 1 otherwise.
.. END DESCRIPTION
Examples
--------
.. BEGIN EXAMPLES
::
>_ string pad -w 10 -c ' ' 'abc'
abc
>_ string pad --right --width 12 --char=z foo barbaz
foozzzzzzzzz
barbazzzzzzz
>_ string pad -w 6 --char=- foo | string pad --right -w 9 --char=-
---foo---
.. END EXAMPLES