UNPKG

@qbyco/tjs-cli

Version:

TrafaletJS CLI Tool

20 lines (15 loc) 615 B
const Registry = require("./tasker"); const EventEmitter = require("events").EventEmitter; const CLI = require("./lib/cli/cli"); Registry.shareResource("cli", new CLI("tjs-cli")); Registry.shareResource("chalk", require("chalk")); Registry.shareResource("events", new EventEmitter("tjs-cli")); Registry.shareResource("cwd", process.cwd()); // Add commands Registry.tasks.add("commands.app"); Registry.tasks.add("commands.help"); Registry.tasks.add("commands.manager"); Registry.tasks.add("commands.make"); Registry.tasks.add("commands.version"); // Run cli Registry.tasks.run("cli");