Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
tx3-bang-reader
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
tx3-bang-reader
Commits
2e12cb23
Commit
2e12cb23
authored
Jul 01, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
run together
parent
62bc9ad4
Pipeline
#206
passed with stages
in 1 minute and 23 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
src/run.ts
src/run.ts
+6
-2
No files found.
src/run.ts
View file @
2e12cb23
...
@@ -7,6 +7,7 @@ const fetcher = new Tx3Fetcher();
...
@@ -7,6 +7,7 @@ const fetcher = new Tx3Fetcher();
async
function
runServer
(
server
:
string
)
{
async
function
runServer
(
server
:
string
)
{
const
users
=
await
fetcher
.
fetchUsersFromServer
(
server
);
const
users
=
await
fetcher
.
fetchUsersFromServer
(
server
);
await
fs
.
promises
.
writeFile
(
`./output/servers/
${
server
}
.json`
,
JSON
.
stringify
(
users
,
null
,
2
));
await
fs
.
promises
.
writeFile
(
`./output/servers/
${
server
}
.json`
,
JSON
.
stringify
(
users
,
null
,
2
));
return
users
;
}
}
async
function
main
()
{
async
function
main
()
{
...
@@ -18,8 +19,11 @@ async function main() {
...
@@ -18,8 +19,11 @@ async function main() {
});
});
}
}
await
fetcher
.
initProxies
();
await
fetcher
.
initProxies
();
for
(
let
server
of
servers
)
{
const
userListWithServer
=
await
Promise
.
all
(
servers
.
map
(
runServer
));
await
runServer
(
server
);
const
allServersList
:
any
=
{};
for
(
let
i
=
0
;
i
<
servers
.
length
;
++
i
)
{
allServersList
[
servers
[
i
]]
=
userListWithServer
[
i
];
}
}
await
fs
.
promises
.
writeFile
(
`./output/all.json`
,
JSON
.
stringify
(
allServersList
,
null
,
2
));
}
}
main
();
main
();
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment