DescriptionCreated a 'TextMenu' utility function.
This works similarly to bash's 'select' command, but is in python:
select foo in "Tom" "Jerry" "Itchy" "Scratchy"; do
echo $foo
break
done
See also: http://codereview.chromium.org/6005004/
...this was broken out of that massive CL.
Change-Id: I38782b4dd6e7ef1af7d92b1975c9a9fd27ae6ee7
BUG=chromium-os:10556
TEST=Ran with --test as well as various sets of params; using this in WIP chromite.
Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=bf34536
Patch Set 1 #
Messages
Total messages: 3 (0 generated)
|