public override PatcherSettings Save() { var ret = new CliPatcherSettings(); CopyOverSave(ret); ret.PathToExecutable = PathToExecutable.TargetPath; 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(), });
public PathToExecutableInputVm( CliPatcherSettings settings) { Picker.TargetPath = settings.PathToExecutable; }