mirror of
https://github.com/charmbracelet/gum.git
synced 2024-10-26 15:20:05 +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!")
|