Skip to content
Myr

gum.py

This file

Path

examples/gum.py

7 lines · 202 bytes · Python

Last changed by

Not known.

History of this file

Take it

1import subprocess23print("What's your favorite language?")45result = subprocess.run(["gum", "choose", "Go", "Python"], stdout=subprocess.PIPE, text=True)67print(f"I like {result.stdout.strip()}, too!")