summaryrefslogtreecommitdiff
path: root/common/cli.c
AgeCommit message (Collapse)AuthorFilesLines
2014-05-30main: Make the execution path a little clearer in main.cSimon Glass1-0/+66
bootdelay_process() never returns in some circumstances, whichs makes the control flow confusing. Change it so that the decision about how to execute the boot command is made in the main_loop() code, so it is easier to follow. Move CLI stuff to cli.c. Signed-off-by: Simon Glass <sjg@chromium.org>
2014-05-30main: Hide the hush/simple details inside cli.cSimon Glass1-0/+22
Move these details from main (which doesn't care which parser is used) to cli.c where they belong. Signed-off-by: Simon Glass <sjg@chromium.org>
2014-05-30Move command line API into cli.cSimon Glass1-0/+106
We now have a single entry point to the CLI, whether simple or hush. Put this in its own file. Signed-off-by: Simon Glass <sjg@chromium.org>