src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleShell.cs
/// <summary>Entry point in to ConsoleShell. This method is called by main of minishell.</summary>
/// <param name="bannerText">Banner text to be displayed by ConsoleHost.</param>
/// <param name="helpText">Help text for minishell. This is displayed on 'minishell -?'.</param>
/// <param name="args">Commandline parameters specified by user.</param>
/// <returns>An integer value which should be used as exit code for the process.</returns>
Entry point in to ConsoleShell. This method is called by main of minishell.
Entry point in to ConsoleShell . This method is called by main of minishell .
public static int Start(string? bannerText, string? helpText, string[] args)
        {
            return StartImpl(
                initialSessionState: InitialSessionState.CreateDefault2(),
                bannerText,
                helpText,
                args,
                issProvided: false);
        }
public static int Start ( string ? bannerText , string ? helpText , string [ ] args ) { return StartImpl ( initialSessionState : InitialSessionState . CreateDefault2 ( ) , bannerText , helpText , args , issProvided : false ) ; }
Entry point in to ConsoleShell.
Entry point in to ConsoleShell .
An integer value which should be used as exit code for the process.
An integer value which should be used as exit code for the process .
bannerText
string?
Banner text to be displayed by ConsoleHost.
Banner text to be displayed by ConsoleHost .
helpText
string?
Help text for minishell. This is displayed on 'minishell -?'.
Help text for minishell . This is displayed on ' minishell - ? ' .
args
string[]
Commandline parameters specified by user.
Commandline parameters specified by user .