Demo package for the Habr publication.
This is sample of the Tequila Framework based application with CLI command. This framework is written in ES2015+ and uses namespaces and dependency injection to load sources.
$ npm install
This plugin adds one command - demo-plugins-list
:
$ node ./bin/tequila.mjs help demo-plugins-list
Usage: tequila demo-plugins-list [options]
Get list of teq-plugins.
Options:
-s, --short get plugins names and namespaces
-f, --full get plugins names, namespaces and path to the sources directory
-h, --help display help for command
- ./bin/tequila.mjs: bootstrap script;
- ./src/Back/Cli/PluginsList.mjs: es6-module with command factory;
- ./teqfw.json: teq-plugin descriptor with command identifier;