Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            _terminal = CliConsole.Init(ColorScheme);

            AppDomain.CurrentDomain.ProcessExit += CurrentDomainOnProcessExit;

            Setup();
            LoadModules();
            Test();

            RunEvalLoop();
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            _cliConsole     = new CliConsole();
            _colorScheme    = new DraculaColorScheme();
            _terminal       = _cliConsole.Init(_colorScheme);
            _logManager     = new OneLoggerLogManager(new CliLogger(_cliConsole));
            _historyManager = new StatementHistoryManager(_cliConsole);

            RegisterConverters();
            InitEngine();
            InitNodeManager();
            LoadCliModules();

            ReadLine.AutoCompletionHandler = new AutoCompletionHandler(ModuleLoader);
            _historyManager.Init();

            TestConnection();
            _cliConsole.WriteLine();

            RunEvalLoop();
        }