C# Class NuGetConsole.Host.PowerShell.HostUtilities

Implements utility methods that might be used by Hosts.
Afficher le fichier Open project: monoman/NugetCracker Class Usage Examples

Méthodes publiques

Méthode Description
GetProfileCommands ( string shellId ) : System.Management.Automation.PSCommand[]

Gets an array of commands that can be run sequentially to set $profile and run the profile commands.

Private Methods

Méthode Description
GetAllUsersFolderPath ( ) : string

Used internally in GetFullProfileFileName to get the base path for all users profiles.

GetApplicationBase ( ) : string
GetDollarProfile ( string allUsersAllHosts, string allUsersCurrentHost, string currentUserAllHosts, string currentUserCurrentHost ) : System.Management.Automation.PSObject

Gets a PSObject whose base object is currentUserCurrentHost and with notes for the other 4 parameters.

GetFullProfileFileName ( string shellId, bool forCurrentUser, bool useTestProfile ) : string

Used to get all profile file names for the current or all hosts and for the current or all users.

GetProfileCommands ( string shellId, bool useTestProfile ) : System.Management.Automation.PSCommand[]

Gets an array of commands that can be run sequentially to set $profile and run the profile commands.

Method Details

GetProfileCommands() public static méthode

Gets an array of commands that can be run sequentially to set $profile and run the profile commands.
public static GetProfileCommands ( string shellId ) : System.Management.Automation.PSCommand[]
shellId string The id identifying the host or shell used in profile file names.
Résultat System.Management.Automation.PSCommand[]