summaryrefslogtreecommitdiffstats
path: root/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'index.js')
-rw-r--r--index.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/index.js b/index.js
new file mode 100644
index 0000000..db229d3
--- /dev/null
+++ b/index.js
@@ -0,0 +1,20 @@
+var statuscake = require("statuscake");
+
+var args = process.argv.slice(2);
+if (args.length != 2) {
+ console.log("Please provide user and key as positional arguments.");
+ process.exit(1);
+}
+
+var username = args[0];
+var password = args[1];
+
+statuscake
+ .username(username)
+ .key(password);
+
+function allTests(err, data) {
+ console.log(data);
+}
+
+statuscake.tests(allTests);