local w=require("\064\108\117\110\101\047\112\114\111\099\101\115\115")local u=require("\064\108\117\110\101\047\115\116\100\105\111")local T=require("\098\114\097\110\099\104\101\115")for u,T in ipairs(T)do if table.find(w.args,T)then return T end end local S=u.prompt("\115\101\108\101\099\116","\087\104\097\116 \098\114\097\110\099\104 \116\111 \098\117\105\108\100 \102\111\114\063 \040\080\097\115\115 \105\116 \105\110 \097\115 \097\114\103\117\109\101\110\116 \119\104\101\110 \114\117\110\110\105\110\103 \099\111\109\109\097\110\100 \116\111 \115\107\105\112 \116\104\105\115\041",T)return T[S]
local process = require("@lune/process")
local stdio = require("@lune/stdio")

local branches = require("branches")

for _, branch in ipairs(branches) do
	if table.find(process.args, branch) then
		return branch
	end
end

local index = stdio.prompt(
	"select",
	"What branch to build for? (Pass it in as argument when running command to skip this)",
	branches
)
return branches[index]
