Skip to content

Commit

Permalink
feat: add diff patching for file modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
neg4n committed Jan 10, 2025
1 parent 9b35a4b commit dcd8805
Show file tree
Hide file tree
Showing 3 changed files with 165 additions and 156 deletions.
5 changes: 3 additions & 2 deletions src/scripts-registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
import {
generateFileOperations,
executeFileOperations,
type SourceFile
} from "./scripts/file-management";

import {
Expand All @@ -16,6 +15,8 @@ import {
type GitNaming
} from "./scripts/version-control-management";

import {type SourceFile} from "./types"

import type { RequireExactlyOne } from 'type-fest';

export type ScriptContext = {
Expand Down Expand Up @@ -110,7 +111,7 @@ export const scriptHandlers: Record<string, ScriptHandler> = {
}));

const operations = await generateFileOperations(context.rawRequest, sourceFiles);
await executeFileOperations(operations);
await executeFileOperations(operations, sourceFiles);
},
},
"version-control-management": {
Expand Down
Loading

0 comments on commit dcd8805

Please sign in to comment.