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}"); } }
private void ListVariables(StringBuilder output) { var names = _variables.Names; if (names.Count == 0) { output.Append(_phraseDictionary.GetPhrase(Texts.PhraseKeys.NoVariablesSet, _executionCultureName)); return; } foreach (var name in names) { var variable = _variables.Get(name) as ValueVariable; output.Append($"{name, Constants.FirstColumnWidth}{variable.Value}{Environment.NewLine}"); } }