public override PatcherSettings Save() { var ret = new SolutionPatcherSettings(); CopyOverSave(ret); ret.SolutionPath = this.SolutionPath.TargetPath; ret.ProjectSubpath = this.ProjectSubpath; return(ret); }
public PatcherVm Get(PatcherSettings settings) { return(settings switch { GithubPatcherSettings git => GetGitPatcher(git), SolutionPatcherSettings soln => GetSolutionPatcher(soln), CliPatcherSettings cli => GetCliPatcher(cli), _ => throw new NotImplementedException(), });