Skip to content

Commit

Permalink
Merge branch 'master' into software_columns_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
belono authored Jul 19, 2024
2 parents af8f65e + 99501cc commit 09e4bf0
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
32 changes: 32 additions & 0 deletions src/escpos/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,38 @@ def str_to_bool(string: str) -> bool:
},
],
},
{
"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",
Expand Down

0 comments on commit 09e4bf0

Please sign in to comment.