@medable/mdctl-export-adapter-console

1.0.72 • Public • Published

mdctl-export-adapter-console

Developer Tools Export Console Adapter for Medable

This module will let you export Org configurations into the console

Usage

const ExportConsoleAdapter = require('@medable/mdctl-export-adapter-console'),
      { ExportSection } = require('@medable/mdctl-core/streams/section'),
      adapter = new ExportConsoleAdapter({
        print: true // false will not print it
      })
      
adapter.write(new ExportSection({
                                  "code": "c_role_1",
                                  "name": "Role1",
                                  "object": "role",
                                  "resource": "role.c_role_1",
                                  "scope": []
                                }, 'role'))
console.log(adapter.items) // in case you want to see the items processed
adapter.end()      

Readme

Keywords

none

Package Sidebar

Install

npm i @medable/mdctl-export-adapter-console

Weekly Downloads

153

Version

1.0.72

License

MIT

Unpacked Size

4.28 kB

Total Files

4

Last publish

Collaborators

  • harishva
  • myerkes-md
  • cscherer-md
  • __jacobi
  • jamessas
  • trsmith
  • grobledo
  • oferrero.medable