public virtual void run(ChocolateyConfiguration configuration)
        {
            if (configuration.ApiKeyCommand.Remove)
            {
                _configSettingsService.remove_api_key(configuration);
            }
            else if (string.IsNullOrWhiteSpace(configuration.ApiKeyCommand.Key))
            {
                _configSettingsService.get_api_key(configuration, (key) =>
                {
                    string authenticatedString = string.IsNullOrWhiteSpace(key.Key) ? string.Empty : "(Authenticated)";

                    if (configuration.RegularOutput)
                    {
                        this.Log().Info(() => "{0} - {1}".format_with(key.Source, authenticatedString));
                    }
                    else
                    {
                        this.Log().Info(() => "{0}|{1}".format_with(key.Source, authenticatedString));
                    }
                });
            }
            else
            {
                _configSettingsService.set_api_key(configuration);
            }
        }
 public void run(ChocolateyConfiguration configuration)
 {
     if (string.IsNullOrWhiteSpace(configuration.ApiKeyCommand.Key))
     {
         _configSettingsService.get_api_key(configuration, (key) =>
         {
             if (configuration.RegularOuptut)
             {
                 this.Log().Info(() => "{0} - {1}".format_with(key.Source, key.Key));
             }
             else
             {
                 this.Log().Info(() => "{0}|{1}".format_with(key.Source, key.Key));
             }
         });
     }
     else
     {
         _configSettingsService.set_api_key(configuration);
     }
 }