I am adding some code to an Azure extension and need to display a 130 character long hexadecimals string.
Azure CLI uses Knack which in turn uses the 'tabulate' library to print the table output format in the terminals.
Tabulate provides a maxcolwidths argument which specifies the max width for it's respective column. However, knack does not use this argument, nor does it provide a way to configure this.
I have a 130-character hexadecimal string which needs to be displayed in tabular format. However, since knack does not specify the column width, the table outputs is not easily readable on a smaller size terminal.
I am looking for something like this (test code and I set the maxcolwdiths argument to 30 here)
I am adding some code to an Azure extension and need to display a 130 character long hexadecimals string. Azure CLI uses Knack which in turn uses the 'tabulate' library to print the table output format in the terminals. Tabulate provides a
maxcolwidths
argument which specifies the max width for it's respective column. However, knack does not use this argument, nor does it provide a way to configure this.I have a 130-character hexadecimal string which needs to be displayed in tabular format. However, since knack does not specify the column width, the table outputs is not easily readable on a smaller size terminal.
I am looking for something like this (test code and I set the
maxcolwdiths
argument to 30 here)Is there any way that knack provides to configure the
maxcolwidths
argument from Azure CLI?