@amir-cli/cli-init

1.0.2 • Public • Published

cli-init

This is the GET plugin for CLI project.

image

Usages:

  • INIT --object={myStringifiedObjectHere} :

    will reset the datastore with provided object. For example INIT --object="{'name':'foo'}" will set/initialize the datasource with {'name':'foo'}
  • INIT --file=sourceFilePath :

    will reset the datastore the JSON file you provide. For example: INIT --file="test.json"

Connector structore:

  • test Folder: Each usage is unit tested using mocha
  • init.js file: It's like Data Access Object (DAO) of the connector where it exposes the newly implemented commands
  • initHandlers.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.

Readme

Keywords

Package Sidebar

Install

npm i @amir-cli/cli-init

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

4.18 kB

Total Files

5

Last publish

Collaborators

  • amir-61