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() {
|
||||
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) {
|
||||
|
@@ -3,7 +3,7 @@ const logAttributes = require('../../../../util/logAttributes')
|
||||
|
||||
async function show(filter) {
|
||||
const axiosConfig = {
|
||||
text: 'Getting Atrributes...',
|
||||
text: 'Getting Attributes...',
|
||||
method: 'get',
|
||||
url: `${this.objectUrl}${this.currentPoId}`,
|
||||
params: {
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "enm-cli",
|
||||
"version": "1.0.3a",
|
||||
"version": "1.0.4a",
|
||||
"description": "This is a cli application for Ericsson Network Manager (ENM)",
|
||||
"bin": "./bin/enm-cli.js",
|
||||
"scripts": {
|
||||
|
@@ -17,7 +17,7 @@ function logAttribute(key, attribute, 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) {
|
||||
constraints.valueRangeConstraints.forEach(item => {
|
||||
output.push(` ${chalk.yellow('Range')}: ${item.minValue}..${item.maxValue}`)
|
||||
@@ -32,7 +32,7 @@ function logConstraints(constraints, 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)}
|
||||
${enumeration.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) {
|
||||
output.push(`${chalk.blue(Object.keys({listReference}).pop().toLocaleUpperCase())}
|
||||
output.push(`${chalk.blue(Object.keys({ listReference }).pop().toLocaleUpperCase())}
|
||||
${listReference.type}`)
|
||||
if (listReference.constraints){
|
||||
if (listReference.constraints) {
|
||||
logConstraints(listReference.constraints, output)
|
||||
}
|
||||
if (listReference.enumeration) {
|
||||
logEnumeration(listReference.enumeration, output)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function logAttributeData(attributeData) {
|
||||
const attributeDataKeys = [
|
||||
const attributeDataKeys = [
|
||||
'key',
|
||||
'type',
|
||||
'defaultValue',
|
||||
|
Reference in New Issue
Block a user