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
60bc0108
Commit
60bc0108
authored
Jul 02, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add finish log
parent
1b749299
Pipeline
#222
passed with stages
in 1 minute and 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
src/run.ts
src/run.ts
+11
-10
No files found.
src/run.ts
View file @
60bc0108
...
...
@@ -27,17 +27,18 @@ async function main() {
await
fetcher
.
init
();
if
(
config
.
server
)
{
await
Promise
.
all
(
config
.
server
.
map
(
runServer
));
return
;
}
else
{
const
userListWithServer
=
await
Promise
.
all
(
servers
.
map
(
runServer
));
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
({
date
:
fetcher
.
date
,
data
:
allServersList
},
null
,
2
));
}
const
userListWithServer
=
await
Promise
.
all
(
servers
.
map
(
runServer
));
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
({
date
:
fetcher
.
date
,
data
:
allServersList
},
null
,
2
));
console
.
log
(
"
Finished.
"
);
process
.
exit
();
}
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