Commit Graph

3 Commits

Author SHA1 Message Date
Darin Petkov
d6bf1010bd Add bash completion for flags for some build scripts.
For example, ./build_packages --<tab> will try to complete all supported
./build_packages flags (or print them if completion is non-unique).
This completion could be used outside chroot.

Review URL: http://codereview.chromium.org/661096
2010-02-26 13:10:11 -08:00
Darin Petkov
726d36686c Fix name and add board completion to mod_image_for_test.sh.
Review URL: http://codereview.chromium.org/659005
2010-02-24 12:05:18 -08:00
Darin Petkov
049dbab5bd Programmatic bash completion for Chromium OS build scripts.
If you source this script inside chroot, you would get <tab> completion for the --board= argument for some build scripts.

For example,
. bash_completion
./build_image --board=x<tab>
may complete to
./build_image --board=x86-generic
if x86-generic is the only available board starting with "x". If not, it will list available boards with the given prefix.

We could extend this to work with setup_board and other scripts. Also, it may be nice to extend it to work outside chroot.

Does it make sense to make this part of the regular dev chroot by default? If so, not sure what the best way to do that. Maybe install this as a hard-host-depends and source it from the chroot user .bashrc?

Review URL: http://codereview.chromium.org/652129
2010-02-23 18:16:37 -08:00