shell: Fix not able to auto complete commands with submenu prefix
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 7 Apr 2022 23:41:34 +0000 (16:41 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:54 +0000 (14:55 +0530)
commit6ada65f2a24eb8b8eb69ab89ef22724c29943a30
tree453b5385380a961a530b89e8a38c53c7ba592395
parent4d25bc0dbc2ffdd90133ee0624a2393f73143a33
shell: Fix not able to auto complete commands with submenu prefix

If the command was given with submenu prefix the code wasn't able to
detect the command to be able to generate the auto complete for its
arguments.

Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
src/shared/shell.c