/** @file
Main file for Alias shell level 3 function.
Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved. <BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
#include "UefiShellLevel3CommandsLib.h"
#include <Library/ShellLib.h>
/**
Print out each alias registered with the Shell.
@retval STATUS_SUCCESS the printout was sucessful
@return any return code from GetNextVariableName except EFI_NOT_FOUND
**/
)
{
if (ConstAllAliasList == NULL) {
return (SHELL_SUCCESS);
}
return (SHELL_OUT_OF_RESOURCES);
}
do {
}
if (ShellCommandIsOnAliasList(Alias)) {
}
ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_ALIAS_OUTPUT), gShellLevel3HiiHandle, !Volatile?L' ':L'*', Alias, Command);
return (SHELL_SUCCESS);
}
{L"-v", TypeFlag},
{L"-d", TypeFlag},
};
/**
Function for 'alias' command.
@param[in] ImageHandle Handle to the Image (NULL if Internal).
@param[in] SystemTable Pointer to the System Table (NULL if Internal).
**/
)
{
ProblemParam = NULL;
//
// initialize the shell lib (we must be in non-auto-init...)
//
Status = ShellInitialize();
Status = CommandInit();
//
// parse the command line
//
} else {
}
} else {
//
// check for "-?"
//
}
//
// print out alias'
//
Status = PrintAllShellAlias();
//
// delete an alias
//
//
// must be adding an alias
//
Status = gEfiShellProtocol->SetAlias(Param2, Param1, FALSE, ShellCommandLineGetFlag(Package, L"-v"));
if (Status == EFI_ACCESS_DENIED) {
} else {
}
}
} else {
}
//
// free the command line package
//
}
return (ShellStatus);
}