@unitybase/ubcli/createCodeInsightHelper

Create service scripts containing entity definition for code insight in WebStorm or other IDE work well.

Usage from a command line:

 ubcli createCodeInsightHelper -u admin -p admin -m UBS -cfg myConfig.json

Usage from a code:

 const createCodeInsightHelper = require('@unitybase/ubcli/createCodeInsightHelper')
 var options = {
      host: "http://localhost:888",
      user: "admin",
      pwd:  "admin",
      model: 'UBS'
 }
 createCodeInsightHelper(options)
Author:
  • pavel.mash

Methods

namedCollection2Array(namedCollection) inner

Convert named collection - {name1: {}, name2: {}} to array -> [{name: name1, ...}, ...] Will mutate original!
Arguments:
  1. namedCollection