diff --git a/CHANGELOG.md b/CHANGELOG.md index ce20984..1483e8f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,3 +17,7 @@ Error corrections ## 1.0.5a Added `alarms`, `sync` commands + +## 1.0.6a + +Publish to NPM diff --git a/README.md b/README.md index 4add72a..33fa74a 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,18 @@ # Cli application based on ENM Topology Browser API +[![Node version](https://img.shields.io/github/package-json/version/vvsviridov/tplg-cli?label=tplg-cli&color=brightgreen)](https://github.com/vvsviridov/tplg-cli) +[![Node version](https://img.shields.io/npm/v/tplg-cli?color=red)](https://www.npmjs.com/package/tplg-cli) + ## Main goal Main features is type suggestions everywhere where it is possible and detailed attributes and values description available in config mode. +## Run directly from NPM + +``` +npx tplg-cli -l USERNAME -p PASSWORD -u https://enm.your.company.domain.com +``` + ## Installation First you need **node.js** which can be downloaded from official site [nodejs.org](https://nodejs.org/en/download/) and installed as described in the docs. @@ -24,7 +33,7 @@ npm link Now you can launch apllication ``` -tplg-cli -l USERNAME -p PASSWORD -u https://enm.your.company.domian.com +tplg-cli -l USERNAME -p PASSWORD -u https://enm.your.company.domain.com ``` ## Usage @@ -372,3 +381,5 @@ EMN returns error if commited configuration includes attributes with type SHORT. 1.0.4a - Error corrections 1.0.5a - Added `alarms`, `sync` commands + +1.0.6a - Publish to NPM diff --git a/package.json b/package.json index 54ac979..fb74f69 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,26 @@ { "name": "tplg-cli", - "version": "1.0.5a", + "version": "1.0.6-a", "description": "This is a cli application to access Ericcson Network Manager (ENM) Topology Browser", "bin": "./bin/tplg-cli.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, - "keywords": [], + "keywords": [ + "Ericsson", + "ENM", + "Network Manager", + "LTE", + "3G", + "4G", + "5G", + "Automation", + "GSM", + "UMTS", + "OSS", + "Cellular", + "REST" + ], "author": "vvsviridov", "license": "MIT", "dependencies": { diff --git a/util/logError.js b/util/logError.js index 22c99cb..1760073 100644 --- a/util/logError.js +++ b/util/logError.js @@ -7,7 +7,7 @@ function logError(err) { } else if (err.response && err.response.data && err.response.data.title) { console.log(`${err.response.data.title.red.bold}: ${err.response.data.body.yellow}`) console.log(`Error Code ${err.response.data.errorCode.toString().yellow}: ${err.response.data.detail.gray}`) - } else if (err.response && err.response.status && err.response.statusText) { + } else if (err.response && err.response.status) { console.log(`${err.response.status}: ${err.response.statusText}`.red) }else { console.error(err)