hdt: Implement aliases
authorPierre-Alexandre Meyer <pierre@mouraf.org>
Wed, 25 Mar 2009 05:27:20 +0000 (22:27 -0700)
committerPierre-Alexandre Meyer <pierre@mouraf.org>
Wed, 25 Mar 2009 05:27:20 +0000 (22:27 -0700)
commit1a1b0cb1c68ecd0e0f709b1c5a94d49069bf18e6
tree6e35fc03a8e76ec9d1aaa94019958f96ccb45e61
parente3161f91283dcdd1486c1e22523e2fbb7259f76a
hdt: Implement aliases

Impact: New alias feature; CLi backward compatible

`dmi' is now a shorthand for `set mode dmi' (idem for all modes). This
is performed via a new routine: expand_aliases.

It is now also possible to match aliases (e.g. `q', `quit') to a single
valid command (e.g. `exit'). The list needs to be populated manually and
is intented to be kept short. Eventually, the CLI will support
autocompletion that will help user experience.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
com32/hdt/hdt-cli.c
com32/hdt/hdt-cli.h