diff --git a/tutor/utils.py b/tutor/utils.py index 03f73f2..6abcaf3 100644 --- a/tutor/utils.py +++ b/tutor/utils.py @@ -96,6 +96,7 @@ def kubectl(*command): ) return execute("kubectl", *command) + def is_a_tty(): """ 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()) + def execute(*command): click.echo(fmt.command(" ".join(command))) with subprocess.Popen(command) as p: