Example #1
0
        private void ListCommands(StringBuilder output)
        {
            output.Append(_phraseDictionary.GetPhrase(Texts.PhraseKeys.AvailableCommands, _executionCultureName));
            output.Append(":");
            output.Append(Environment.NewLine);

            foreach (var descriptor in _commandRegistry.GetAllRegistrations())
            {
                output.Append($"{descriptor.CommandName, Constants.FirstColumnWidth}{descriptor.GetDescription(_executionCultureName)}{Environment.NewLine}");
            }
        }