Beispiel #1
0
        public override int Execute()
        {
            PropellerUtil.RunStandalone(ConfigFile ?? @"D:\Daten\Config\Zinga.config.json", new ZingaPropellerModule(),
#if DEBUG
                                        true
#else
                                        false
#endif
                                        );
            return(0);
        }
Beispiel #2
0
        public static int Main(string[] args)
        {
            try { Console.OutputEncoding = Encoding.UTF8; }
            catch { }

            if (args.Length == 2 && args[0] == "--post-build-check")
            {
                return(PostBuildChecker.RunPostBuildChecks(args[1], Assembly.GetExecutingAssembly()));
            }

            Console.BackgroundColor = IsDebug ? ConsoleColor.DarkBlue : ConsoleColor.DarkRed;
            Console.ForegroundColor = ConsoleColor.White;
            var msg    = IsDebug ? "DEBUG MODE" : "RELEASE MODE";
            var spaces = new string(' ', (Console.BufferWidth - msg.Length - 7) / 2);

            Console.WriteLine("{0}┌──{1}──╖{0}".Fmt(spaces, new string('─', msg.Length)));
            Console.WriteLine("{0}│  {1}  ║{0}".Fmt(spaces, msg));
            Console.WriteLine("{0}╘══{1}══╝{0}".Fmt(spaces, new string('═', msg.Length)));
            Console.ResetColor();

            PropellerUtil.RunStandalone(PathUtil.AppPathCombine("DocGen.Settings.json"), new DocGenPropellerModule());
            return(0);
        }
Beispiel #3
0
 static void Main(string[] args)
 {
     PropellerUtil.RunStandalone(PathUtil.AppPathCombine("KTANE-Propeller-standalone.json"), new KtanePropellerModule());
 }
Beispiel #4
0
 static void Main(string[] args)
 {
     PropellerUtil.RunStandalone(PathUtil.AppPathCombine("Bot-Propeller-standalone.json"), new BotServer());
 }