Skip to content

Commit

Permalink
Write EnvironmentName on command with default environment
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Shvedun committed Nov 30, 2023
1 parent bda6699 commit 048cc22
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clio/Environment/ConfigurationOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ public void ShowSettingsTo(TextWriter streamWriter, string environment = null) {
public EnvironmentSettings GetEnvironment(string name = null) {
if(string.IsNullOrWhiteSpace(name)) {
var activeEnvironment = _settings.ActiveEnvironmentKey;
Console.WriteLine($"{activeEnvironment}: {_settings.Environments[activeEnvironment].Uri}");
return _settings.Environments[activeEnvironment];
}
if(!_settings.Environments.TryGetValue(name, out EnvironmentSettings environment)) {
Expand Down

0 comments on commit 048cc22

Please sign in to comment.