Skip to content

Commit 44389fa

Browse files
att
1 parent 111b883 commit 44389fa

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

luasrc/main.lua

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ private_vibescript.internal_main = function()
3737

3838

3939

40-
41-
42-
4340
if action == "version" or action == "--version" then
4441
print("vibescript "..private_vibescript.VERSION)
4542
return

luasrc/patch.lua

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
private_vibescript.configure_patch = function ()
2+
function ApllyPatch(patch)
3+
if not patch then
4+
error("No patch provided")
5+
end
6+
if not patch.repo then
7+
error("No repo provided in patch")
8+
end
9+
local patch_dest = os.getenv("HOME").."/.vibescript_patches/"
10+
local hasher = dtw.newHash()
11+
hasher.digest(patch.repo)
12+
13+
local patch_folder = patch_dest..hasher.get_value()
14+
dtw.create_dir_recursively(patch_folder)
15+
os.execute("git clone "..patch.repo.." "..patch_folder)
16+
17+
end
18+
end

0 commit comments

Comments
 (0)