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")
|
output.terminal(Level.THREAD, task.name(), "Added to Queue")
|
||||||
yield task
|
yield task
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
parser = InputParser()
|
parser = InputParser()
|
||||||
arguments = parser.parse(argv[1:])
|
arguments = parser.parse(argv[1:])
|
||||||
|
|||||||
@@ -209,7 +209,7 @@ class InputHelper(object):
|
|||||||
target_spec = IPSet((target_spec,))
|
target_spec = IPSet((target_spec,))
|
||||||
else:
|
else:
|
||||||
target_spec = [target_spec]
|
target_spec = [target_spec]
|
||||||
|
|
||||||
for i in target_spec:
|
for i in target_spec:
|
||||||
ips_list.append(str(i))
|
ips_list.append(str(i))
|
||||||
return (str_targets, set(ips_list))
|
return (str_targets, set(ips_list))
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ class OutputHelper(object):
|
|||||||
'target': target,
|
'target': target,
|
||||||
'command': command,
|
'command': command,
|
||||||
'message': message,
|
'message': message,
|
||||||
'leader': leader
|
'leader': leader
|
||||||
}
|
}
|
||||||
|
|
||||||
if not self.silent:
|
if not self.silent:
|
||||||
@@ -50,7 +50,7 @@ class OutputHelper(object):
|
|||||||
template = '[{time}] {leader} [{target}] {command} {message}'
|
template = '[{time}] {leader} [{target}] {command} {message}'
|
||||||
else:
|
else:
|
||||||
template = '[{time}] {leader} [{target}] {command} {message}'
|
template = '[{time}] {leader} [{target}] {command} {message}'
|
||||||
|
|
||||||
print(template.format(**format_args))
|
print(template.format(**format_args))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ if platform.system().lower() == 'linux':
|
|||||||
else:
|
else:
|
||||||
shell = None
|
shell = None
|
||||||
|
|
||||||
|
|
||||||
class Task(object):
|
class Task(object):
|
||||||
def __init__(self, command, silent=False):
|
def __init__(self, command, silent=False):
|
||||||
self.task = command
|
self.task = command
|
||||||
|
|||||||
Reference in New Issue
Block a user