Exemple #1
0
        private async Task RunHelpAsync(string commandName)
        {
            if (_isHelp || string.IsNullOrEmpty(commandName))
            {
                await Console.Out.WriteLineAsync("Welcome to SSCMS Command Line");

                await Console.Out.WriteLineAsync();

                var services = GetJobServices();
                foreach (var service in services)
                {
                    await WriteUtils.PrintRowLine();

                    await WriteUtils.PrintRow(service.CommandName);

                    await WriteUtils.PrintRowLine();

                    service.PrintUsage();
                }
            }
            else
            {
                Console.WriteLine($"'{commandName}' is not a sscms command. See 'sscms --help'");
            }
        }