browser/devtools/commandline/commands-index.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/browser/devtools/commandline/commands-index.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,37 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +"use strict";
     1.9 +
    1.10 +const gcli = require("gcli/index");
    1.11 +
    1.12 +const commandModules = [
    1.13 +  "devtools/tilt/tilt-commands",
    1.14 +  "gcli/commands/addon",
    1.15 +  "gcli/commands/appcache",
    1.16 +  "gcli/commands/calllog",
    1.17 +  "gcli/commands/cmd",
    1.18 +  "gcli/commands/cookie",
    1.19 +  "gcli/commands/jsb",
    1.20 +  "gcli/commands/listen",
    1.21 +  "gcli/commands/media",
    1.22 +  "gcli/commands/pagemod",
    1.23 +  "gcli/commands/paintflashing",
    1.24 +  "gcli/commands/restart",
    1.25 +  "gcli/commands/screenshot",
    1.26 +  "gcli/commands/tools",
    1.27 +];
    1.28 +
    1.29 +gcli.addItemsByModule(commandModules, { delayedLoad: true });
    1.30 +
    1.31 +const defaultTools = require("main").defaultTools;
    1.32 +for (let definition of defaultTools) {
    1.33 +  if (definition.commands) {
    1.34 +    gcli.addItemsByModule(definition.commands, { delayedLoad: true });
    1.35 +  }
    1.36 +}
    1.37 +
    1.38 +const { mozDirLoader } = require("gcli/commands/cmd");
    1.39 +
    1.40 +gcli.addItemsByModule("mozcmd", { delayedLoad: true, loader: mozDirLoader });

mercurial