Beispiel #1
0
        /// <summary> Entry point for the console application </summary>
        private static async Task Main(string[] args)
        {
            var version = GetVersion();

            // Greeting
            UIConsole.Show($"Kronos, at your service.\n{version}\n");
            var lu = LatestUpdate();

            if (!lu.Equals(version))
            {
                UIConsole.Show(
                    $"The latest release of Kronos is {lu}. You can find it here: https://github.com/Krypton-Nova/Kronos/releases \n");
            }

            // Read settings
            var unusedUserAgent = Shared.UserAgent;
            var unusedUserTags  = Shared.UserTags;

            // Run until Quit command is given.
            while (true)
            {
                // Pass initial options to Program, or request user input
                var commands = UIConsole.UserCommandInput(args);

                // Run commands sequentially
                foreach (var command in commands)
                {
                    await command.Run();
                }

                // Reset initial options
                args = new string[0];
            }
        }