audk/ShellPkg/Library
Ruiyu Ni e9597b4519 ShellPkg/dmpstore: Support "-sfo"
The patch adds the "-sfo" support to "dmpstore" command.

When -l or -d is specified, -sfo is not supported.

When the variable specified by name and GUID cannot be found,
an error message is displayed; Otherwise, the SFO is displayed.
E.g.: "dmpstore -guid GuidThatDoesntExist -sfo" produces output
as:
ShellCommand,"dmpstore"
VariableInfo,"","GuidThatDoesntExist","","",""

"dmpstore NameThatDoesntExist -guid GuidThatDoesntExist -sfo"
produces output as:
ShellCommand,"dmpstore"
dmpstore: No matching variables found. Guid GuidThatDoesntExist, Name
NameThatDoesntExist

The difference between the above 2 cases is that former one only
specifies the GUID, but the latter one specifies both name and GUID.
Since not specifying GUID means to use GlobalVariableGuid,
"dmpstore NameThatDoesntExist -sfo" produces the similar output as
latter one.
I personally prefer to always produce SFO output for both cases.
But the above behavior is the discussion result between HPE engineers.

Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Signed-off-by: Chen A Chen <chen.a.chen@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Tapan Shah <tapandshah@hpe.com>
2016-11-16 12:32:17 +08:00
..
UefiDpLib ShellPkg/UefiDpLib: rebase to ARRAY_SIZE() 2016-10-27 11:15:20 +02:00
UefiHandleParsingLib ShellPkg: Update sources to include MdePkg protocol definitions 2016-10-19 10:26:16 +08:00
UefiShellBcfgCommandLib ShellPkg: Update sources to include MdePkg protocol definitions 2016-10-19 10:26:16 +08:00
UefiShellCEntryLib ShellPkg: Fix typos in comments and variables 2016-11-15 11:05:34 +08:00
UefiShellCommandLib ShellPkg/ShellCommandLib: Add missing EFIAPI for public library APIs 2016-11-11 10:59:39 +08:00
UefiShellDebug1CommandsLib ShellPkg/dmpstore: Support "-sfo" 2016-11-16 12:32:17 +08:00
UefiShellDriver1CommandsLib ShellPkg: Fix typos in comments and variables 2016-11-15 11:05:34 +08:00
UefiShellInstall1CommandsLib Revert "ShellPkg : Add UEFI_APPLICATION module type to UefiShellInstall1CommandsLib.inf" 2016-01-06 16:23:20 +00:00
UefiShellLevel1CommandsLib ShellPkg: Update sources to include MdePkg protocol definitions 2016-10-19 10:26:16 +08:00
UefiShellLevel2CommandsLib ShellPkg: Fix typos in comments and variables 2016-11-15 11:05:34 +08:00
UefiShellLevel3CommandsLib ShellPkg: handle '-t or -terse' and '-s' flags for 'ver' command properly 2016-10-24 10:27:08 -07:00
UefiShellLib ShellPkg: print only valid characters for file overwrite prompt 2016-10-31 08:21:05 -07:00
UefiShellNetwork1CommandsLib ShellPkg: Fix typos in comments and variables 2016-11-15 11:05:34 +08:00
UefiShellNetwork2CommandsLib ShellPkg: Fix typos in comments and variables 2016-11-15 11:05:34 +08:00
UefiShellTftpCommandLib ShellPkg: Update sources to include MdePkg protocol definitions 2016-10-19 10:26:16 +08:00