diff options
| author | Michael Brown | 2025-08-06 17:29:32 +0200 |
|---|---|---|
| committer | Michael Brown | 2025-08-06 17:34:45 +0200 |
| commit | 9d4a2ee3538f28a21a77c55c272c84b4e346dd92 (patch) | |
| tree | 07e34d6baf1c66bb85b0d5acf24ba57e483bc53b /src/image | |
| parent | [digest] Treat inability to acquire an image as a fatal error (diff) | |
| download | ipxe-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/image')
| -rw-r--r-- | src/image/script.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/image/script.c b/src/image/script.c index 01e38cd6f..257e59a09 100644 --- a/src/image/script.c +++ b/src/image/script.c @@ -352,10 +352,7 @@ static int goto_exec ( int argc, char **argv ) { } /** "goto" command */ -struct command goto_command __command = { - .name = "goto", - .exec = goto_exec, -}; +COMMAND ( goto, goto_exec ); /** "prompt" options */ struct prompt_options { @@ -418,7 +415,4 @@ static int prompt_exec ( int argc, char **argv ) { } /** "prompt" command */ -struct command prompt_command __command = { - .name = "prompt", - .exec = prompt_exec, -}; +COMMAND ( prompt, prompt_exec ); |
