Rename component to node in console plugin for more consistency with naming elsewhere.
This commit is contained in:
@ -73,20 +73,20 @@ class ConsoleOutputPlugin(Plugin):
|
|||||||
def write(context, prefix='', rewind=True, append=None, debug=False, profile=False):
|
def write(context, prefix='', rewind=True, append=None, debug=False, profile=False):
|
||||||
t_cnt = len(context)
|
t_cnt = len(context)
|
||||||
|
|
||||||
for i, component in enumerate(context):
|
for i, node in enumerate(context):
|
||||||
if component.alive:
|
if node.alive:
|
||||||
_line = ''.join(
|
_line = ''.join(
|
||||||
(
|
(
|
||||||
Fore.BLACK, '({})'.format(i + 1), Style.RESET_ALL, ' ', Style.BRIGHT, '+', Style.RESET_ALL, ' ',
|
Fore.BLACK, '({})'.format(i + 1), Style.RESET_ALL, ' ', Style.BRIGHT, '+', Style.RESET_ALL, ' ',
|
||||||
component.name, ' ', component.get_statistics_as_string(debug=debug,
|
node.name, ' ', node.get_statistics_as_string(debug=debug,
|
||||||
profile=profile), Style.RESET_ALL, ' ',
|
profile=profile), Style.RESET_ALL, ' ',
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
_line = ''.join(
|
_line = ''.join(
|
||||||
(
|
(
|
||||||
Fore.BLACK, '({})'.format(i + 1), ' - ', component.name, ' ',
|
Fore.BLACK, '({})'.format(i + 1), ' - ', node.name, ' ',
|
||||||
component.get_statistics_as_string(debug=debug, profile=profile), Style.RESET_ALL, ' ',
|
node.get_statistics_as_string(debug=debug, profile=profile), Style.RESET_ALL, ' ',
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
print(prefix + _line + '\033[0K')
|
print(prefix + _line + '\033[0K')
|
||||||
|
|||||||
Reference in New Issue
Block a user