Edit

ShellHelpers Class

Definition

Namespace: Microsoft.CommandPalette.Extensions.Toolkit

The ShellHelpers class provides methods for opening commands in a shell environment. It allows you to execute commands with different user contexts, such as running as an administrator or as a different user.

Methods

Method Description
OpenCommandInShell(String, String, String, String, ShellRunAsType, Boolean) Opens a command in a shell environment with the specified parameters.
OpenInShell(String, String, String, ShellRunAsType, Boolean) Opens a shell with the specified command and parameters.

Enums

Enum Description
ShellRunAsType The ShellRunAsType enumeration defines the different types of user contexts in which a command can be executed in the Command Palette. This enumeration is used to specify how a command should be run.