UNPKG

skysync-cli

Version:

SkySync Command Line Interface

64 lines (63 loc) 1.48 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.outputFormatWithGroupAndRoles = exports.outputFormatWithGroup = exports.outputFormat = exports.outputFormatID = void 0; exports.outputFormatID = { table: [ { header: 'ID', property: 'id' } ] }; exports.outputFormat = { table: [ ...exports.outputFormatID.table, { header: 'Login', property: 'login' }, { header: 'Name', property: 'name' }, { header: 'E-Mail', property: 'email' }, { header: 'Enabled', property: 'disabled', transform: val => !Boolean(val) } ] }; exports.outputFormatWithGroup = { table: [ ...exports.outputFormat.table, { header: 'Group', property: 'group.name' } ], json: [ 'group.id' ] }; exports.outputFormatWithGroupAndRoles = { table: [ ...exports.outputFormatWithGroup.table, { header: 'Roles', property: 'roles[].name' }, { header: 'Permissions', property: 'permissions[].name' } ], json: [ ...exports.outputFormatWithGroup.json, 'roles[].id', 'permissions[].id' ] };