aboutsummaryrefslogtreecommitdiffstats
path: root/com32/hdt/hdt-cli-hdt.c
Commit message (Collapse)AuthorAgeFilesLines
* hdt: Fixing about menu & show hdtErwan Velu2009-12-041-1/+2
| | | | | | | Impact: visual Let's add website, rename contact to mailing list and put all people together
* hdt: summary mode only show memory sizeErwan Velu2009-12-041-4/+4
| | | | | | | Impact: visual Summary mode only show the detected memory size. Showing used banks is too much verbose for a summary
* hdt: Adding history commandErwan Velu2009-12-041-0/+4
| | | | | | Impact: new command 'history' This command allow to see the content of the history
* hdt: Running NindentErwan Velu2009-11-241-251/+237
| | | | | | Impact: Visual cleanup HDT now uses the same indent as syslinux
* Merge remote branch 'pam/hdt-0.3.5'Erwan Velu2009-11-021-0/+17
|\
| * hdt: add reboot command in HDT mode (CLI)Pierre-Alexandre Meyer2009-11-011-0/+17
| | | | | | | | | | | | Reboot the system via the 'reboot' command in the CLI. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * hdt: use plain printf for help, not more_printf (CLI)Pierre-Alexandre Meyer2009-11-011-16/+15
| | | | | | | | | | | | | | | | The help prints several elements on the same line. This can't work with more_printf() as the macro assumes each call contains one and only one \n. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * hdt: change remaining printf to more_printf (CLI)Pierre-Alexandre Meyer2009-10-311-22/+27
| | | | | | | | | | | | | | | | | | | | | | A lot of places still had printf() instead of more_printf(). This patch does a bulk update and add missing reset_more_printf(), used to reset the pager counter between each command call. This also changes the more_printf() routine to delete the "--More--" line while scrolling. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* | hdt: 0.3.5-pre2hdt-0.3.5-pre2Erwan Velu2009-11-011-3/+3
| | | | | | | | | | | | Impact: new pre-release Releasing 0.3.5-pre2. Adding codename for 0.3.5
* | hdt: Adding core developper roleErwan Velu2009-11-011-5/+6
| | | | | | | | | | | | Impact: Visual Pierre is more than a contributor ;)
* | hdt: use plain printf for help, not more_printf (CLI)Pierre-Alexandre Meyer2009-11-011-16/+15
| | | | | | | | | | | | | | | | The help prints several elements on the same line. This can't work with more_printf() as the macro assumes each call contains one and only one \n. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* | hdt: change remaining printf to more_printf (CLI)Pierre-Alexandre Meyer2009-11-011-22/+27
| | | | | | | | | | | | | | | | | | | | | | A lot of places still had printf() instead of more_printf(). This patch does a bulk update and add missing reset_more_printf(), used to reset the pager counter between each command call. This also changes the more_printf() routine to delete the "--More--" line while scrolling. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* | Revert "hdt: Adding core developper role"Erwan Velu2009-11-011-6/+5
| | | | | | | | This reverts commit 57689f219c5155e186ced1c9f5f972d5d0b340ed.
* | hdt: Adding core developper roleErwan Velu2009-11-011-5/+6
|/ | | | | | Impact: Visual Pierre is more than a contributor ;)
* hdt: Removing useless Author NameErwan Velu2009-10-271-2/+2
| | | | | | Impact: visual Pierre do much work on it, no need to keep my name everywhere ;)
* hdt: adding "hdt> show memory"Erwan Velu2009-05-051-1/+4
| | | | | | Impact: more command coherency hdt> show memory now reports the same as memory> show
* hdt: improve help messageErwan Velu2009-05-041-5/+9
| | | | | | | Impact: Improve display usage Prior to that commit, the help message was using too much lines. This commit make it more compact
* hdt: removing useless clear screen on dmi> show memoryErwan Velu2009-05-011-2/+2
| | | | | | Impact: Improving display usage No need to clearscreen for such display
* hdt: Add disk callbacks (CLI)Pierre-Alexandre Meyer2009-04-261-1/+1
| | | | | | | | | | | In the hdt mode, `show disk' outputs a summary for all disks (C/H/S, EDD (version, size) and host/interface). In the disk mode, `show' outputs the same as above, `show disks' a full description for all disks (with partitions) and `show disk 0x80' detailed information for one disk only (0x80 in that example). Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* Merge commit 'hdt-erwan/master' into for-erwanPierre-Alexandre Meyer2009-04-261-0/+5
|\
| * hdt: Adding hdt> show vpdErwan Velu2009-04-231-0/+5
| | | | | | | | | | | | Impact: Adding a missing CLI command Prior to that commit, "hdt> show vpd" didn't worked.
* | Merge branch 'disklib' into for-erwanPierre-Alexandre Meyer2009-04-261-0/+4
|\ \ | |/ |/| | | | | | | | | | | Conflicts: com32/hdt/hdt-common.c Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * hdt: Add `show disk' in hdt mode (CLI)Pierre-Alexandre Meyer2009-04-191-0/+4
| | | | | | | | | | | | | | It is now possible to see disks from hdt mode, via the `show disk' command. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* | Merge commit 'mouraf/for-erwan' into for-erwanPierre-Alexandre Meyer2009-04-221-16/+38
|\| | | | | | | | | | | Conflicts: com32/hdt/hdt-cli-hdt.c
| * Merge commit 'erwan/master' into for-erwanPierre-Alexandre Meyer2009-04-171-13/+13
| |\ | | | | | | | | | | | | | | | Conflicts: com32/hdt/hdt-cli-hdt.c com32/hdt/hdt-cli.c
| * | hdt: Get rid of nb_modules in struct cli_module_descrPierre-Alexandre Meyer2009-04-171-14/+34
| | | | | | | | | | | | | | | | | | | | | | | | End list of modules commands by NULL instead of managing manually the number in nb_modules. This should limit the number of bugs when adding new features. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | hdt: Get rid of MAX_MODESPierre-Alexandre Meyer2009-04-161-2/+4
| | | | | | | | | | | | | | | | | | End the list of modes by NULL instead of managing manually the length. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* | | hdt: removing useless more_printfErwan Velu2009-04-191-5/+5
| |/ |/| | | | | | | | | | | Impact: improving user experience hdt>show modes was using more_printf. This is pretty useless and annoying for users.
* | hdt: Improving more_printf & clear_screen managementErwan Velu2009-04-161-13/+13
|/ | | | | | Impact: greatly improve user experience This commit adds more coherency in more_printf & clear_screen usage
* hdt: Add "menu" commandPierre-Alexandre Meyer2009-03-291-1/+19
| | | | | | | | Impact: Switching back from CLI to menu is possible The "menu" command allows the user to display the menu from the CLI. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* hdt: Execute default callback only if no module is specifiedPierre-Alexandre Meyer2009-03-291-1/+2
| | | | | | | | | | | | Impact: 'show' in hdt shows the main summary Previously, 'show bidule' would execute the default callback for the list of show modules. This is confusing. Let's execute it only if no module is specified. Note: same behaviour for 'set'. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* hdt: Add show_modesPierre-Alexandre Meyer2009-03-291-2/+20
| | | | | | | | | Impact: help more verbose w.r.t. modes show modes (in hdt mode) will list the availables modes. help (in any mode) will also list them. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* hdt: Add autocompletion supportPierre-Alexandre Meyer2009-03-291-4/+2
| | | | | | | | | | | | | | | | | | | | | | Impact: current_mode is global; cleanups Autocompletion is now supported. Without anything on the line, hitting TAB at the prompt once will show the list of available commands. Hitting TAB a second time will start cycling through these commands, replacing one by one on the prompt. If the start of a command is entered, e.g. 'cl', the list of possible matches is narrowed ('cl' will only yield 'clear'). The same behaviour exists with modules. Having entered 'show' on the command line, the list of possible show modules will be presented. Same for narrow searches: 'show s' in the hdt mode would only yield 'show summary' and 'show syslinux'. Misc.: cleanups, enhanced some messages. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* hdt: Converting printf to more_printfErwan Velu2009-03-271-10/+10
| | | | | | | Impact: Improving display management more_printf is better to manage output as it ask users to press return when the content is too long
* hdt: Fixing modules count for hdt modeErwan Velu2009-03-261-1/+1
| | | | | | Impact: "show hdt" command now works We have 9 modules
* Merge commit 'erwan-private/master' into for-erwanPierre-Alexandre Meyer2009-03-211-0/+19
| | | | | | | Conflicts: com32/hdt/hdt-cli.c com32/hdt/hdt-cli.h
* hdt: Hide show/set help when no module is definedPierre-Alexandre Meyer2009-03-211-2/+4
| | | | | | | | | Impact: Help output improved. Small improvement in the module help output: the module_descr structure can be defined but without any module. Add this sanity check. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* hdt: Implement show commands (hdt mode) with the new frameworkPierre-Alexandre Meyer2009-03-211-4/+90
| | | | | | | | | | | Impact: Cleanups. The summary of each mode (show <module> in hdt mode) is now implemented using the new framework, as show modules of the hdt mode. Misc.: cleanups. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* hdt: Implement set_mode with the new framework; CleanupsPierre-Alexandre Meyer2009-03-211-0/+183
Impact: Cleanups, rename cli module structures. set_mode now uses the new framework. Add a new file: hdt-cli-hdt.c. hdt-cli.c will contain the core functions for the cli, whereas hdt-cli-hdt.c will contain callbacks for the hdt (default) mode. Misc.: rename core structures to be more meaningful. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>