mirror of
https://github.com/ipxe/ipxe
synced 2026-02-01 15:29:45 +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:
@@ -30,7 +30,4 @@ static int md4sum_exec ( int argc, char **argv ) {
|
||||
return digest_exec ( argc, argv, &md4_algorithm );
|
||||
}
|
||||
|
||||
struct command md4sum_command __command = {
|
||||
.name = "md4sum",
|
||||
.exec = md4sum_exec,
|
||||
};
|
||||
COMMAND ( md4sum, md4sum_exec );
|
||||
|
||||
@@ -30,7 +30,4 @@ static int sha224sum_exec ( int argc, char **argv ) {
|
||||
return digest_exec ( argc, argv, &sha224_algorithm );
|
||||
}
|
||||
|
||||
struct command sha224sum_command __command = {
|
||||
.name = "sha224sum",
|
||||
.exec = sha224sum_exec,
|
||||
};
|
||||
COMMAND ( sha224sum, sha224sum_exec );
|
||||
|
||||
@@ -30,7 +30,4 @@ static int sha256sum_exec ( int argc, char **argv ) {
|
||||
return digest_exec ( argc, argv, &sha256_algorithm );
|
||||
}
|
||||
|
||||
struct command sha256sum_command __command = {
|
||||
.name = "sha256sum",
|
||||
.exec = sha256sum_exec,
|
||||
};
|
||||
COMMAND ( sha256sum, sha256sum_exec );
|
||||
|
||||
@@ -30,7 +30,4 @@ static int sha384sum_exec ( int argc, char **argv ) {
|
||||
return digest_exec ( argc, argv, &sha384_algorithm );
|
||||
}
|
||||
|
||||
struct command sha384sum_command __command = {
|
||||
.name = "sha384sum",
|
||||
.exec = sha384sum_exec,
|
||||
};
|
||||
COMMAND ( sha384sum, sha384sum_exec );
|
||||
|
||||
@@ -30,7 +30,4 @@ static int sha512sum_exec ( int argc, char **argv ) {
|
||||
return digest_exec ( argc, argv, &sha512_algorithm );
|
||||
}
|
||||
|
||||
struct command sha512sum_command __command = {
|
||||
.name = "sha512sum",
|
||||
.exec = sha512sum_exec,
|
||||
};
|
||||
COMMAND ( sha512sum, sha512sum_exec );
|
||||
|
||||
Reference in New Issue
Block a user