MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / IsScriptOnlyCommand

Function IsScriptOnlyCommand

ShellPkg/Application/Shell/Shell.c:832–846  ·  view source on GitHub ↗

Internal function to determine if a command is a script only command. @param[in] CommandName The pointer to the command name. @retval TRUE The command is a script only command. @retval FALSE The command is not a script only command. **/

Source from the content-addressed store, hash-verified

830 @retval FALSE The command is not a script only command.
831**/
832BOOLEAN
833IsScriptOnlyCommand(
834 IN CONST CHAR16 *CommandName
835 )
836{
837 if (IsCommand(CommandName, L"for")
838 ||IsCommand(CommandName, L"endfor")
839 ||IsCommand(CommandName, L"if")
840 ||IsCommand(CommandName, L"else")
841 ||IsCommand(CommandName, L"endif")
842 ||IsCommand(CommandName, L"goto")) {
843 return (TRUE);
844 }
845 return (FALSE);
846}
847
848/**
849 This function will populate the 2 device path protocol parameters based on the

Callers 1

RunInternalCommandFunction · 0.85

Calls 1

IsCommandFunction · 0.85

Tested by

no test coverage detected