edk2/ShellPkg
Pierre Gondois cebf8bc4ae ShellPkg/UefiShellDebug1: Extract MainCmdXXX() function (4/4)
This patch aims to help breaking down the long functions present in
the ShellPkg and reduce complexity/nested code and conditions.

Extract a MainCmdXXX() function for each shell command.
This command contains the possible operations the command aims
to operate. The ShellCommandRunXXX() function from which it
is extracted is only responsible of:
- initializing the shell/command environment
- parsing the command parameter and creating a Package
- freeing the Package

For the MemMap and SetVar commands, ShellCommandLineFreeVarList()
calls are removed as the Package is now freed in the caller
function: ShellCommandRunXXX().

To avoid having one large commit updating all the UefiShellDebug1
commands, only update these files:
- SerMode.c
- SetSize.c
- SetVar.c
- SmbiosView/SmbiosView.c

No functional change should be induced by this patch.

Signed-off-by: Pierre Gondois <pierre.gondois@arm.com>
2026-08-04 10:35:35 +03:00
..
Application ShellPkg/Shell: Remove duplicate Guid in INF file 2026-04-29 11:18:10 +02:00
DynamicCommand ShellPkg: Remove improper Depex section in UEFI_APPLICATION 2026-06-09 05:51:07 +00:00
Include ShellPkg/UefiShellLib: Add IsDotOrDotDot() function 2026-04-24 18:18:47 +00:00
Library ShellPkg/UefiShellDebug1: Extract MainCmdXXX() function (4/4) 2026-08-04 10:35:35 +03:00
Test ShellPkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
ShellPkg.ci.yaml Global: Set MarkdownLintCheck plugin to AuditOnly 2026-07-29 12:32:09 +00:00
ShellPkg.dec ShellPkg: Remove PcdShellSupportOldProtocols 2025-06-13 21:11:49 +00:00
ShellPkg.dsc ShellPkg: Remove ARM32 Support 2025-09-25 22:04:10 +00:00