summaryrefslogtreecommitdiffstats
path: root/src/hci/shell.c
diff options
context:
space:
mode:
authorMichael Brown2025-08-06 17:29:32 +0200
committerMichael Brown2025-08-06 17:34:45 +0200
commit9d4a2ee3538f28a21a77c55c272c84b4e346dd92 (patch)
tree07e34d6baf1c66bb85b0d5acf24ba57e483bc53b /src/hci/shell.c
parent[digest] Treat inability to acquire an image as a fatal error (diff)
downloadipxe-9d4a2ee3538f28a21a77c55c272c84b4e346dd92.tar.gz
ipxe-9d4a2ee3538f28a21a77c55c272c84b4e346dd92.tar.xz
ipxe-9d4a2ee3538f28a21a77c55c272c84b4e346dd92.zip
[cmdline] Show commands in alphabetical order
Commands were originally ordered by functional group (e.g. keeping the image management commands together), with arrays used to impose a functionally meaningful order within the group. As the number of commands and functional groups has expanded over the years, this has become essentially useless as an organising principle. Switch to sorting commands alphabetically (using the linker table mechanism). Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/hci/shell.c')
-rw-r--r--src/hci/shell.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/hci/shell.c b/src/hci/shell.c
index 8ecf73a6f..7e2ecaab6 100644
--- a/src/hci/shell.c
+++ b/src/hci/shell.c
@@ -72,10 +72,7 @@ static int help_exec ( int argc __unused, char **argv __unused ) {
}
/** "help" command */
-struct command help_command __command = {
- .name = "help",
- .exec = help_exec,
-};
+COMMAND ( help, help_exec );
/**
* Start command shell
@@ -137,7 +134,4 @@ static int shell_exec ( int argc, char **argv ) {
}
/** "shell" command */
-struct command shell_command __command = {
- .name = "shell",
- .exec = shell_exec,
-};
+COMMAND ( shell, shell_exec );