TianoCore EDK2 master
|
Go to the source code of this file.
Functions | |
SHELL_STATUS | PrintSingleShellAlias (IN CONST CHAR16 *Alias) |
SHELL_STATUS | PrintAllShellAlias (VOID) |
SHELL_STATUS | ShellLevel3CommandsLibSetAlias (IN CONST CHAR16 *Command, IN CONST CHAR16 *Alias, IN BOOLEAN Replace, IN BOOLEAN Volatile) |
SHELL_STATUS EFIAPI | ShellCommandRunAlias (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
Variables | |
STATIC CONST SHELL_PARAM_ITEM | ParamList [] |
Main file for Alias shell level 3 function.
(C) Copyright 2015 Hewlett-Packard Development Company, L.P.
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file Alias.c.
SHELL_STATUS PrintAllShellAlias | ( | VOID | ) |
SHELL_STATUS PrintSingleShellAlias | ( | IN CONST CHAR16 * | Alias | ) |
SHELL_STATUS EFIAPI ShellCommandRunAlias | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
SHELL_STATUS ShellLevel3CommandsLibSetAlias | ( | IN CONST CHAR16 * | Command, |
IN CONST CHAR16 * | Alias, | ||
IN BOOLEAN | Replace, | ||
IN BOOLEAN | Volatile | ||
) |
Changes a shell command alias.
This function creates an alias for a shell command or if Alias is NULL it will delete an existing alias.
[in] | Command | Points to the NULL-terminated shell command or existing alias. |
[in] | Alias | Points to the NULL-terminated alias for the shell command. If this is NULL, and Command refers to an alias, that alias will be deleted. |
[in] | Replace | If TRUE and the alias already exists, then the existing alias will be replaced. If FALSE and the alias already exists, then the existing alias is unchanged and EFI_ACCESS_DENIED is returned. |
[in] | Volatile | if TRUE the Alias being set will be stored in a volatile fashion. if FALSE the Alias being set will be stored in a non-volatile fashion. |
SHELL_SUCCESS | Alias created or deleted successfully. |
SHELL_NOT_FOUND | the Alias intended to be deleted was not found |
SHELL_ACCESS_DENIED | The alias is a built-in alias or already existed and Replace was set to FALSE. |
SHELL_DEVICE_ERROR | Command is null or the empty string. |
STATIC CONST SHELL_PARAM_ITEM ParamList[] |