public Release(ReleaseCommand command) { Command = command ?? throw new ArgumentNullException(nameof(command)); T config <T>(T obj) { CONF.Configure(obj, ""); CONF.Configure(obj); Command.Configure(obj, ""); Command.Configure(obj); return(obj); } var info = config(this); var codeBase = new CodeBase(info.Repository); foreach (var action in Actions) { config(action); action.CodeBase = codeBase; action.Solution = codeBase.Solution; action.Work(); } }
public static void Release(string[] args) { try { CONF.Container.ContentsProvider = new AppSettingsProvider(); CONF.Container.ConfigureLogging(); var command = ReleaseCommand.From(args); new Release(command); } catch (Exception ex) { CONSOLE.WriteLine(ex); } }