This is the INIT plugin for CLI project.
- NPM: @amir-cli/cli-init, GITHUB: cli-init
-
will reset the datastore with provided object. For example
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="test.json"
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
- 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.