コード例 #1
0
ファイル: Program.cs プロジェクト: tectil/NCommand
 /// <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);
 }
コード例 #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);
        }
コード例 #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();
        }
コード例 #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();
            }
        }
コード例 #5
0
ファイル: Program.cs プロジェクト: MariuszKogut/NCommand
 /// <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);
 }