Files
herolib/lib/develop/luadns/factory.v
2025-10-12 12:30:19 +03:00

26 lines
383 B
V

module luadns
import incubaid.herolib.develop.gittools
struct LuaDNS {
pub mut:
url string
configs []DNSConfig
}
// returns the path of the fetched repo
pub fn load(url string) !LuaDNS {
mut gs := gittools.new()!
mut repo := gs.get_repo(
url: url
pull: true
)!
repo_path := repo.path()
return LuaDNS{
url: url
configs: parse_dns_configs(repo_path)!
}
}