Skip to content
This repository has been archived by the owner on Jun 14, 2022. It is now read-only.

Commit

Permalink
npm publish
Browse files Browse the repository at this point in the history
  • Loading branch information
vvsviridov committed Jan 29, 2022
1 parent 14ee1ef commit 089b3ac
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ Error corrections
## 1.0.5a

Added `alarms`, `sync` commands

## 1.0.6a

Publish to NPM
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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
Expand Down Expand Up @@ -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
18 changes: 16 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion util/logError.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 089b3ac

Please sign in to comment.