Skip to content

flancer64/habr_teqfw_cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

habr_teqfw_cli

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.

Installation

$ npm install

Run commands

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

Implementation

  1. ./bin/tequila.mjs: bootstrap script;
  2. ./src/Back/Cli/PluginsList.mjs: es6-module with command factory;
  3. ./teqfw.json: teq-plugin descriptor with command identifier;

About

Demo package for the Habr publication

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published