mirror of
				https://github.com/python-escpos/python-escpos
				synced 2025-10-23 09:30:00 +00:00 
			
		
		
		
	New feature: Software columns - Part 2: CLI (#649)
* Add software_columns CLI parameter * Fix sorting --------- Co-authored-by: Patrick Kanzler <4189642+patkan@users.noreply.github.com>
This commit is contained in:
		@@ -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",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user