Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove token cli commands from app.js.

  • Loading branch information...
commit 9c001629be4b961ab45cc70a45310d1e2707fe2a 1 parent d08d0d9
@pH200 authored
Showing with 2 additions and 37 deletions.
  1. +2 −37 app.js
View
39 app.js
@@ -2,20 +2,12 @@
var optimist = require("optimist");
-var express = require('express');
-var http = require('http');
-var path = require('path');
-
var fbQuery = require("./sabrina/fb-query");
var readJson = require("./sabrina/persistence-read-json");
var saveJson = require("./sabrina/persistence-save-json");
-var startServer = require("./erika/start-server");
-
var DataDriver = require("./sabrina/data-driver");
-
var waterfall = require("./sabrina/waterfall");
-
-var navigateUrl = require("./sabrina/navigate-url");
+var startServer = require("./erika/start-server");
var argv = optimist
.alias("db", "persistence")
@@ -24,7 +16,6 @@ var argv = optimist
.string(["cron"])
.string(["site_title"])
.boolean(["rebuild", "disable_static", "no_auto_rebuild", "skip_server"])
- .boolean(["login_steps", "exchange_token", "navigate_url"])
/* .default() */
["default"]("persistence", "json")
["default"]("jsondir", __dirname)
@@ -38,32 +29,6 @@ var argv = optimist
.wrap(80)
.argv;
-
-
-function steps (onNext) {
- if (argv.login_steps) {
- console.log("Login URL: ");
- var url = fbQuery.getDefaultAuthUrl(argv.appid || "$APPID");
- console.log(url);
- if (argv.navigate_url && argv.appid) {
- navigateUrl(url);
- }
- } else if (argv.exchange_token) {
- console.log("Open URL: ");
- var url = fbQuery.getExchangeTokenUrl(
- argv.appid || "$APPID",
- argv.appsecret || "$APPSECRET",
- argv.accesstoken || "$ACCESSTOKEN");
- console.log(url);
- if (argv.navigate_url &&
- argv.appid && argv.appsecret && argv.accesstoken) {
- navigateUrl(url);
- }
- } else {
- onNext(null);
- }
-}
-
var persistence = argv.persistence;
function getData (callback) {
@@ -118,4 +83,4 @@ function main () {
});
}
-steps(main);
+main();
Please sign in to comment.
Something went wrong with that request. Please try again.