mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 01:57:13 +02:00
Improve settings printing
This commit is contained in:
@ -42,10 +42,11 @@ def settings_get(name):
|
|||||||
_defvalue_str = str(_data['value'])
|
_defvalue_str = str(_data['value'])
|
||||||
if isinstance(_data['value'], bool):
|
if isinstance(_data['value'], bool):
|
||||||
_defvalue_str = "Yes" if _data['value'] else "No"
|
_defvalue_str = "Yes" if _data['value'] else "No"
|
||||||
_value_str += " [%s]" % _defvalue_str
|
|
||||||
_value_str = click.style(_value_str, fg="yellow")
|
_value_str = click.style(_value_str, fg="yellow")
|
||||||
|
_value_str += "%s[%s]" % ("\n" if len(_value_str) > 10 else " ",
|
||||||
tabular_data.append((_name, _value_str, _data['description']))
|
_defvalue_str)
|
||||||
|
tabular_data.append(
|
||||||
|
(click.style(_name, fg="cyan"), _value_str, _data['description']))
|
||||||
|
|
||||||
click.echo(
|
click.echo(
|
||||||
tabulate(tabular_data,
|
tabulate(tabular_data,
|
||||||
|
Reference in New Issue
Block a user