예제 #1
0
        /// <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();
        }
예제 #2
0
파일: Program.cs 프로젝트: HTD/Woof.Command
        /**
         * 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.
        }