예제 #1
0
        public override PatcherSettings Save()
        {
            var ret = new SolutionPatcherSettings();

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