Skip to content

Amir-61/cli-init

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cli-init

This is the INIT 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.

About

Init plugin for cli

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published