@amir-cli/cli-init
v1.0.2
Published
init plugin for cli
Downloads
9
Readme
cli-init
This is the GET plugin for CLI project.
- NPM: @amir-cli/cli-init, GITHUB: cli-init
Usages:
will reset the datastore with provided object. For exampleINIT --object={myStringifiedObjectHere}
:INIT --object="{'name':'foo'}"
will set/initialize the datasource with {'name':'foo'}
will reset the datastore the JSON file you provide. For example:INIT --file=sourceFilePath
:INIT --file="test.json"
Connector structore:
test
Folder: Each usage is unit tested using mochainit.js
file: It's like Data Access Object (DAO) of the connector where it exposes the newly implemented commandsinitHandlers.js
file: It's the handler for each exposed usages
Unit tests:
- This connector comes with it's own unit tests written in mocha, you can run unit tests for each module sperataly using
npm test
command.