forked from r.muellner/velum-raycast
feat: review text hits and release false-positive mappings
This commit is contained in:
11
src/project-mapping-actions.ts
Normal file
11
src/project-mapping-actions.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { listRuns } from "./lib/velum-project";
|
||||
import { reviseProjectRun } from "./lib/project-revision";
|
||||
import { depseudonymizeDocument } from "./velum";
|
||||
|
||||
/** Release the whole alias group and update the latest saved project files. */
|
||||
export async function releaseProjectMapping(projectPath: string, placeholder: string) {
|
||||
const latest = (await listRuns(projectPath))[0];
|
||||
if (!latest) throw new Error("Projektstand nicht gefunden.");
|
||||
return reviseProjectRun({ previous: latest.run, previousDirectory: latest.directory,
|
||||
release: new Set([placeholder]), merges: {}, rewriteDocument: depseudonymizeDocument });
|
||||
}
|
||||
Reference in New Issue
Block a user