public override async Task <int> ExecuteAsync() { try { DarcSettings darcSettings = LocalSettings.GetDarcSettings(_options, Logger); // No need to set up a git type or PAT here. Remote remote = new Remote(darcSettings, Logger); await remote.AddDefaultChannelAsync(_options.Repository, _options.Branch, _options.Channel); return(Constants.SuccessCode); } catch (Exception e) { Logger.LogError(e, "Error: Failed to add a new default channel association."); return(Constants.ErrorCode); } }