From 7d4fbbca3a7f14f839785fbda3048de6c456168a Mon Sep 17 00:00:00 2001 From: Tangent Date: Sun, 16 Aug 2026 16:51:59 -0600 Subject: [PATCH] checking extant data --- rescue-from-github.lua | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/rescue-from-github.lua b/rescue-from-github.lua index f640749..bc4e8bd 100755 --- a/rescue-from-github.lua +++ b/rescue-from-github.lua @@ -2,6 +2,27 @@ package.path = (arg[0]:match("@?(.*/)") or arg[0]:match("@?(.*\\)")) .. "lib" .. package.config:sub(1, 1) .. "?.lua;" .. package.path local utility = require "utility" +-- reformatting the mirrors list in my new file to the format I want +local data = utility.load_data("respositories.json") +local mirrors = { + ["https://github.com/"] = { + TangentFoxy = {} + } +} +for _, name in ipairs(data.mirrors) do + mirrors["https://github.com/"].TangentFoxy[name] = {} +end +data.mirrors = mirrors +utility.save_data(data) +os.exit() + +-- making sure all mirror keys are repos under my name on GitHub +local data = utility.load_data("export.json") +for _, name in ipairs(data.mirrors) do + os.execute("open " .. ("https://github.com/TangentFoxy/" .. name):enquote()) +end +os.exit() + -- TODO add support for private repos by making it warn the user -- defaults: organization "tangent", public, a string alone means the description