TianoCore EDK2 master
Loading...
Searching...
No Matches
Set.c File Reference

Go to the source code of this file.

Functions

SHELL_STATUS PrintAllShellEnvVars (VOID)
 
SHELL_STATUS EFIAPI ShellCommandRunSet (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Variables

STATIC CONST SHELL_PARAM_ITEM SetParamList []
 

Detailed Description

Main file for attrib shell level 2 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 Set.c.

Function Documentation

◆ PrintAllShellEnvVars()

SHELL_STATUS PrintAllShellEnvVars ( VOID  )

Print out each environment variable registered with the Shell 2.0 GUID.

If you spawn a pre 2.0 shell from the Shell 2.0 the environment variable may not carry through.

Return values
STATUS_SUCCESSthe printout was successful
Returns
any return code from GetNextVariableName except EFI_NOT_FOUND

Definition at line 21 of file Set.c.

◆ ShellCommandRunSet()

SHELL_STATUS EFIAPI ShellCommandRunSet ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

Function for 'set' command.

Parameters
[in]ImageHandleHandle to the Image (NULL if Internal).
[in]SystemTablePointer to the System Table (NULL if Internal).

Definition at line 56 of file Set.c.

Variable Documentation

◆ SetParamList

STATIC CONST SHELL_PARAM_ITEM SetParamList[]
Initial value:
= {
{ L"-d", TypeValue },
{ L"-v", TypeFlag },
{ NULL, TypeMax }
}
#define NULL
Definition: Base.h:319
@ TypeValue
A flag that has some data following it with a space (IE "-a 1").
Definition: ShellLib.h:700
@ TypeFlag
A flag that is present or not present only (IE "-a").
Definition: ShellLib.h:699

Definition at line 42 of file Set.c.