mirror of
https://github.com/ChristianLight/tutor.git
synced 2025-01-11 09:35:06 +00:00
Minor formatting
This commit is contained in:
parent
e521333b75
commit
b72da818ea
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user