mirror of
https://github.com/vvsviridov/enm-cli.git
synced 2025-10-23 08:22:21 +00:00
minor errors
This commit is contained in:
@@ -127,7 +127,7 @@ class TopologyBrowser extends ENM {
|
|||||||
|
|
||||||
persistent() {
|
persistent() {
|
||||||
this.includeNonPersistent = !this.includeNonPersistent
|
this.includeNonPersistent = !this.includeNonPersistent
|
||||||
console.log(chalk.yellow(`Include Non Persistent Atrributes Set to: ${this.includeNonPersistent}`))
|
console.log(chalk.yellow(`Include Non Persistent Attributes Set to: ${this.includeNonPersistent}`))
|
||||||
}
|
}
|
||||||
|
|
||||||
async alarms(fdn) {
|
async alarms(fdn) {
|
||||||
|
@@ -3,7 +3,7 @@ const logAttributes = require('../../../../util/logAttributes')
|
|||||||
|
|
||||||
async function show(filter) {
|
async function show(filter) {
|
||||||
const axiosConfig = {
|
const axiosConfig = {
|
||||||
text: 'Getting Atrributes...',
|
text: 'Getting Attributes...',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
url: `${this.objectUrl}${this.currentPoId}`,
|
url: `${this.objectUrl}${this.currentPoId}`,
|
||||||
params: {
|
params: {
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "enm-cli",
|
"name": "enm-cli",
|
||||||
"version": "1.0.3a",
|
"version": "1.0.4a",
|
||||||
"description": "This is a cli application for Ericsson Network Manager (ENM)",
|
"description": "This is a cli application for Ericsson Network Manager (ENM)",
|
||||||
"bin": "./bin/enm-cli.js",
|
"bin": "./bin/enm-cli.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@@ -17,7 +17,7 @@ function logAttribute(key, attribute, output) {
|
|||||||
|
|
||||||
|
|
||||||
function logConstraints(constraints, output) {
|
function logConstraints(constraints, output) {
|
||||||
output.push(`${chalk.blue(Object.keys({constraints}).pop().toLocaleUpperCase())}`)
|
output.push(`${chalk.blue(Object.keys({ constraints }).pop().toLocaleUpperCase())}`)
|
||||||
if (constraints.valueRangeConstraints) {
|
if (constraints.valueRangeConstraints) {
|
||||||
constraints.valueRangeConstraints.forEach(item => {
|
constraints.valueRangeConstraints.forEach(item => {
|
||||||
output.push(` ${chalk.yellow('Range')}: ${item.minValue}..${item.maxValue}`)
|
output.push(` ${chalk.yellow('Range')}: ${item.minValue}..${item.maxValue}`)
|
||||||
@@ -32,7 +32,7 @@ function logConstraints(constraints, output) {
|
|||||||
|
|
||||||
|
|
||||||
function logEnumeration(enumeration, output) {
|
function logEnumeration(enumeration, output) {
|
||||||
output.push(`${chalk.blue(Object.keys({enumeration}).pop().toLocaleUpperCase())}
|
output.push(`${chalk.blue(Object.keys({ enumeration }).pop().toLocaleUpperCase())}
|
||||||
${chalk.cyan(enumeration.key)}
|
${chalk.cyan(enumeration.key)}
|
||||||
${enumeration.description}`)
|
${enumeration.description}`)
|
||||||
enumeration.enumMembers.forEach(item => output.push(` ${chalk.yellow(item.key)} (${item.value}): -- ${chalk.gray(item.description)}`))
|
enumeration.enumMembers.forEach(item => output.push(` ${chalk.yellow(item.key)} (${item.value}): -- ${chalk.gray(item.description)}`))
|
||||||
@@ -40,16 +40,19 @@ function logEnumeration(enumeration, output) {
|
|||||||
|
|
||||||
|
|
||||||
function logList(listReference, output) {
|
function logList(listReference, output) {
|
||||||
output.push(`${chalk.blue(Object.keys({listReference}).pop().toLocaleUpperCase())}
|
output.push(`${chalk.blue(Object.keys({ listReference }).pop().toLocaleUpperCase())}
|
||||||
${listReference.type}`)
|
${listReference.type}`)
|
||||||
if (listReference.constraints){
|
if (listReference.constraints) {
|
||||||
logConstraints(listReference.constraints, output)
|
logConstraints(listReference.constraints, output)
|
||||||
}
|
}
|
||||||
|
if (listReference.enumeration) {
|
||||||
|
logEnumeration(listReference.enumeration, output)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function logAttributeData(attributeData) {
|
function logAttributeData(attributeData) {
|
||||||
const attributeDataKeys = [
|
const attributeDataKeys = [
|
||||||
'key',
|
'key',
|
||||||
'type',
|
'type',
|
||||||
'defaultValue',
|
'defaultValue',
|
||||||
|
Reference in New Issue
Block a user