mirror of
https://github.com/charmbracelet/gum
synced 2024-06-16 12:35:06 +02:00
8 lines
202 B
Python
8 lines
202 B
Python
|
import subprocess
|
||
|
|
||
|
print("What's your favorite language?")
|
||
|
|
||
|
result = subprocess.run(["gum", "choose", "Go", "Python"], stdout=subprocess.PIPE, text=True)
|
||
|
|
||
|
print(f"I like {result.stdout.strip()}, too!")
|