示例#1
0
        private static int Main(string[] args)
        {
            GlobalContext.Properties["applicationName"] = "UberDeployer.ConsoleApp";
              XmlConfigurator.Configure();

              TextWriter outputWriter = Console.Out;

              try
              {
            Bootstraper.Bootstrap();

            var commandDispatcher = new CommandDispatcher(outputWriter);

            commandDispatcher.DiscoverCommands(Assembly.GetExecutingAssembly());

            if (args.Length == 0)
            {
              commandDispatcher.DisplayAvailableCommands();

              return 1;
            }

            return commandDispatcher.Dispatch(args);
              }
              catch (Exception exc)
              {
            outputWriter.WriteLine(exc);

            return 1;
              }
        }
示例#2
0
        private static int Main(string[] args)
        {
            TextWriter outputWriter = Console.Out;

              try
              {
            Bootstraper.Bootstrap();

            var commandDispatcher = new CommandDispatcher(outputWriter);

            commandDispatcher.DiscoverCommands(Assembly.GetExecutingAssembly());

            if (args.Length == 0)
            {
              commandDispatcher.DisplayAvailableCommands();

              return 1;
            }

            return commandDispatcher.Dispatch(args);
              }
              catch (Exception exc)
              {
            outputWriter.WriteLine(exc);

            return 1;
              }
        }
示例#3
0
        protected ConsoleCommand(CommandDispatcher commandDispatcher)
        {
            if (commandDispatcher == null)
              {
            throw new ArgumentNullException("commandDispatcher");
              }

              _commandDispatcher = commandDispatcher;
        }
示例#4
0
 public ExitCommand(CommandDispatcher commandDispatcher)
     : base(commandDispatcher)
 {
 }
 public ListProjectConfigurationsCommand(CommandDispatcher commandDispatcher)
     : base(commandDispatcher)
 {
 }
 public ListEnvironmentsCommand(CommandDispatcher commandDispatcher)
     : base(commandDispatcher)
 {
 }
示例#7
0
 public DeployCommand(CommandDispatcher commandDispatcher)
     : base(commandDispatcher)
 {
 }
 public ReadEvalPrintLoopCommand(CommandDispatcher commandDispatcher)
     : base(commandDispatcher)
 {
 }
示例#9
0
 public HelpCommand(CommandDispatcher commandDispatcher)
     : base(commandDispatcher)
 {
 }
示例#10
0
 public ListProjectsCommand(CommandDispatcher commandDispatcher)
     : base(commandDispatcher)
 {
 }
示例#11
0
 public GetVersionCommand(CommandDispatcher commandDispatcher)
     : base(commandDispatcher)
 {
 }