Beispiel #1
0
 /// <summary>
 /// Entry point.
 /// </summary>
 /// <param name="args">The arguments.</param>
 static void Main(string[] args)
 {
     NCommands commands = new NCommands();
     commands.Context.AutodetectCommandAssemblies(); // Loads all assemblies in bin folder and checks for CommandAttribute
     commands.Context.Configuration.DisplayExceptionDetails = false;
     // commands.Context.Configuration.Notation = ParserNotation.Unix;
     commands.RunConsole(args);
 }
Beispiel #2
0
        /// <summary>
        /// Entry point.
        /// </summary>
        /// <param name="args">The arguments.</param>
        static void Main(string[] args)
        {
            NCommands commands = new NCommands();

            commands.Context.AutodetectCommandAssemblies(); // Loads all assemblies in bin folder and checks for CommandAttribute
            commands.Context.Configuration.DisplayExceptionDetails = false;
            // commands.Context.Configuration.Notation = ParserNotation.Unix;
            commands.RunConsole(args);
        }
Beispiel #3
0
        static void Main(string[] args)
        {
            Logger.LoggerHandlerManager
            .AddHandler(new ConsoleLoggerHandler())
            .AddHandler(new FileLoggerHandler())
            .AddHandler(new DebugConsoleLoggerHandler());
            NCommands commands = new NCommands();

            commands.RunConsole(args);
            Console.Read();
        }
Beispiel #4
0
        private static void Main(string[] args)
        {
            var traceListener = new ConsoleTraceListener();

            traceListener.TraceOutputOptions = TraceOptions.DateTime;
            Trace.Listeners.Add(traceListener);

            var commands = new NCommands();

            commands.Context.Configuration.Notation = ParserNotation.Unix;

            while (true)
            {
                commands.RunConsole(args);
                StopTracing();
            }
        }
Beispiel #5
0
 /// <summary>
 /// Entry point.
 /// </summary>
 /// <param name="args">The arguments.</param>
 static void Main(string[] args)
 {
     NCommands commands = new NCommands();
     commands.Context.AutodetectCommandAssemblies(); // Loads all assemblies in bin folder and checks for CommandAttribute
     commands.RunConsole(args);
 }