mirror of
https://github.com/ipxe/ipxe
synced 2026-04-16 03:00:10 +03:00
[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>
This commit is contained in:
@@ -95,7 +95,4 @@ static int cpuid_exec ( int argc, char **argv ) {
|
||||
}
|
||||
|
||||
/** x86 CPU feature detection command */
|
||||
struct command cpuid_command __command = {
|
||||
.name = "cpuid",
|
||||
.exec = cpuid_exec,
|
||||
};
|
||||
COMMAND ( cpuid, cpuid_exec );
|
||||
|
||||
@@ -105,13 +105,5 @@ static int stoppxe_exec ( int argc __unused, char **argv __unused ) {
|
||||
}
|
||||
|
||||
/** PXE commands */
|
||||
struct command pxe_commands[] __command = {
|
||||
{
|
||||
.name = "startpxe",
|
||||
.exec = startpxe_exec,
|
||||
},
|
||||
{
|
||||
.name = "stoppxe",
|
||||
.exec = stoppxe_exec,
|
||||
},
|
||||
};
|
||||
COMMAND ( startpxe, startpxe_exec );
|
||||
COMMAND ( stoppxe, stoppxe_exec );
|
||||
|
||||
Reference in New Issue
Block a user