michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: "use strict"; michael@0: michael@0: const gcli = require("gcli/index"); michael@0: michael@0: const commandModules = [ michael@0: "devtools/tilt/tilt-commands", michael@0: "gcli/commands/addon", michael@0: "gcli/commands/appcache", michael@0: "gcli/commands/calllog", michael@0: "gcli/commands/cmd", michael@0: "gcli/commands/cookie", michael@0: "gcli/commands/jsb", michael@0: "gcli/commands/listen", michael@0: "gcli/commands/media", michael@0: "gcli/commands/pagemod", michael@0: "gcli/commands/paintflashing", michael@0: "gcli/commands/restart", michael@0: "gcli/commands/screenshot", michael@0: "gcli/commands/tools", michael@0: ]; michael@0: michael@0: gcli.addItemsByModule(commandModules, { delayedLoad: true }); michael@0: michael@0: const defaultTools = require("main").defaultTools; michael@0: for (let definition of defaultTools) { michael@0: if (definition.commands) { michael@0: gcli.addItemsByModule(definition.commands, { delayedLoad: true }); michael@0: } michael@0: } michael@0: michael@0: const { mozDirLoader } = require("gcli/commands/cmd"); michael@0: michael@0: gcli.addItemsByModule("mozcmd", { delayedLoad: true, loader: mozDirLoader });