forked from guyellis/http-status-check
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
21 lines (16 loc) · 601 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
'use strict';
var _ = require('lodash');
var manager = require('./lib/manager');
var settings = require('./package.json');
var inAdapter = require(settings.inAdapter.type);
var outAdapter = require('./lib/outAdapters/consoleAdapter');
var main = function(verbosity, skipSummary) {
var sites = inAdapter.getRunData();
manager.run(sites, settings, outAdapter, verbosity, skipSummary);
};
var verbose = _.includes(process.argv.slice(2), '--verbose');
var skipPrintSummary = _.includes(process.argv.slice(2), '--skip-summary');
main(verbose, skipPrintSummary);
module.exports = {
main: main
};