Merge branch 'master' into software_columns_tests

This commit is contained in:
Benito López 2024-07-19 23:09:41 +02:00 committed by GitHub
commit 09e4bf0a4b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 33 additions and 1 deletions

View File

@ -100,4 +100,4 @@ Disclaimer
None of the vendors cited in this project agree or endorse any of the
patterns or implementations.
Its names are used only to maintain context.
Their names are used only to maintain context.

View File

@ -209,6 +209,38 @@ ESCPOS_COMMANDS: List[Dict[str, Any]] = [
},
],
},
{
"parser": {
"name": "software_columns",
"help": "Print a list of texts arranged into columns",
},
"defaults": {
"func": "software_columns",
},
"arguments": [
{
"option_strings": ("--text_list",),
"help": "list of texts to print",
"nargs": "+",
"type": str,
"required": True,
},
{
"option_strings": ("--widths",),
"help": "list of column widths",
"nargs": "+",
"type": int,
"required": True,
},
{
"option_strings": ("--align",),
"help": "list of column alignments",
"nargs": "+",
"type": str,
"required": True,
},
],
},
{
"parser": {
"name": "cut",