/// <summary> /// Handles application start on another thread, only called from Main /// </summary> /// <param name="args"></param> /// <returns></returns> async static Task MainAsync(string[] args) { _tokenSource = new CancellationTokenSource(); App = new Application(); App.Init(); Shell = new CommandShell(_tokenSource.Token); await Shell.Start(); }
/** * Type "man" to see internal commands. * Use Tab key a lot to see a list of possible completions. */ static void Main(string[] args) { var cli = new CommandShell(); // creates a new default commands hell, a little CMD on steroids. cli.Start(); // starts the shell session. }