Sign in
fuchsia
/
third_party
/
github.com
/
charmbracelet
/
gum
/
d795b8ab2ffb048f281d0af901d119ff00ebba59
/
.
/
examples
/
gum.py
blob: 5c2052022f858fb200773c775ae392d5d1aec034 [
file
] [
log
] [
blame
]
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!"
)