mirror of
https://github.com/codingo/Interlace.git
synced 2025-12-17 06:44:23 +01:00
fixed python styling issues that made me go bonkers
This commit is contained in:
@@ -18,6 +18,7 @@ def task_queue_generator_func(arguments, output, repeat):
|
||||
output.terminal(Level.THREAD, task.name(), "Added to Queue")
|
||||
yield task
|
||||
|
||||
|
||||
def main():
|
||||
parser = InputParser()
|
||||
arguments = parser.parse(argv[1:])
|
||||
|
||||
@@ -209,7 +209,7 @@ class InputHelper(object):
|
||||
target_spec = IPSet((target_spec,))
|
||||
else:
|
||||
target_spec = [target_spec]
|
||||
|
||||
|
||||
for i in target_spec:
|
||||
ips_list.append(str(i))
|
||||
return (str_targets, set(ips_list))
|
||||
|
||||
@@ -42,7 +42,7 @@ class OutputHelper(object):
|
||||
'target': target,
|
||||
'command': command,
|
||||
'message': message,
|
||||
'leader': leader
|
||||
'leader': leader
|
||||
}
|
||||
|
||||
if not self.silent:
|
||||
@@ -50,7 +50,7 @@ class OutputHelper(object):
|
||||
template = '[{time}] {leader} [{target}] {command} {message}'
|
||||
else:
|
||||
template = '[{time}] {leader} [{target}] {command} {message}'
|
||||
|
||||
|
||||
print(template.format(**format_args))
|
||||
|
||||
|
||||
|
||||
@@ -11,6 +11,7 @@ if platform.system().lower() == 'linux':
|
||||
else:
|
||||
shell = None
|
||||
|
||||
|
||||
class Task(object):
|
||||
def __init__(self, command, silent=False):
|
||||
self.task = command
|
||||
|
||||
Reference in New Issue
Block a user