annotate src/private/tools/links.txt.luan @ 22:e65668ff8822

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 15 Sep 2024 08:21:43 -0600
parents dfc36e7ed22c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
1 local Luan = require "luan:Luan.luan"
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
2 local error = Luan.error
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
3 local pairs = Luan.pairs or error()
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
4 local Io = require "luan:Io.luan"
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
5 local Http = require "luan:http/Http.luan"
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
6 local Shared = require "site:/lib/Shared.luan"
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
7 local config = Shared.config or error()
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
8
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
9
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
10 return function()
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
11 Io.stdout = Http.response.text_writer()
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
12 for _, repo in pairs(config.repos) do
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
13 if repo.users.backup then
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
14 %>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
15 <%=repo.name%>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
16 <%
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
17 end
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
18 end
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
19 end