Implementation of serviser
AppInterface
.
Create command line applications with serviser
framework.
Usage
Load the plugin at the bottom of your index.js
file:
; //loads the plugin
Initialize a shell App
in your app.js
file:
service;
An example command definition:
const router = serviceappManager ; const route = router route; route; route;
Now the above command will be available through the serviser
executable:
project/root> ./node_modules/.bin/serviser node_modules/.bin/serviser <command> [options] Commands: run [options..] Starts serviser app - expects it to be located under cwd [aliases: start, serve] get:config [key] Dumbs resolved service configuration :upload Upload image Options: --help, -h Show help [boolean] --config Custom config file destination [string] --version Prints serviser version [boolean] project/root>project/root>project/root> ./node_modules/.bin/serviser :upload --help node_modules/.bin/serviser :upload Options: --help, -h Show help [boolean] --config Custom config file destination [string] --version Prints serviser version [boolean] --title Image title [string] project/root> cat ./dog.png | ./node_modules/.bin/serviser :upload --title Lokyhttps://cloudvendor.com/locky_dog.png project/root>