6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2025-01-11 09:35:06 +00:00

Minor formatting

This commit is contained in:
Régis Behmo 2020-03-27 10:17:36 +01:00
parent e521333b75
commit b72da818ea

View File

@ -96,6 +96,7 @@ def kubectl(*command):
) )
return execute("kubectl", *command) return execute("kubectl", *command)
def is_a_tty(): def is_a_tty():
""" """
Return True if stdin is able to allocate a tty. Tty allocation sometimes cannot be Return True if stdin is able to allocate a tty. Tty allocation sometimes cannot be
@ -103,6 +104,7 @@ def is_a_tty():
""" """
return os.isatty(sys.stdin.fileno()) return os.isatty(sys.stdin.fileno())
def execute(*command): def execute(*command):
click.echo(fmt.command(" ".join(command))) click.echo(fmt.command(" ".join(command)))
with subprocess.Popen(command) as p: with subprocess.Popen(command) as p: