mirror of
https://github.com/charmbracelet/gum.git
synced 2024-09-11 06:16:03 +03: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!")
|