Skip to content

Commit 93ff1c5

Browse files
Merge remote-tracking branch 'upstream/main'
2 parents 30223ba + 3a02f7b commit 93ff1c5

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
# Node fetch session
44

5-
[![npm version](https://badge.fury.io/js/%40lambdatest%2Fnode-fetch-session.svg)](https://badge.fury.io/js/%40lambdatest%2Fnode-fetch-session.svg)
5+
[![npm version](https://badge.fury.io/js/%40lambdatest%2Fnode-fetch-sessions.svg)](https://badge.fury.io/js/%40lambdatest%2Fnode-fetch-sessions.svg)
66

7-
A Node.js JavaScript package to fetch [LambdaTest](https://www.lambdatest.com) automation sessions through [@lambdatest/node-rest-client](https://www.npmjs.com/package/@lambdatest/node-rest-client).
7+
A command-line interface(CLI) to fetch [LambdaTest](https://www.lambdatest.com) automation session details through [@lambdatest/node-rest-client](https://www.npmjs.com/package/@lambdatest/node-rest-client).
88

99
## Installation
1010

1111
```
12-
npm i @lambdatest/node-fetch-session
12+
npm i -g @lambdatest/node-fetch-sessions
1313
```
1414

1515
## Example
@@ -25,7 +25,7 @@ export LT_LT_ACCESS_KEY=def
2525
// The build name whose test session information is to be fetched
2626
export LT_BUILD=Demo
2727

28-
node LTresults.js
28+
fetch-Lt-sessions
2929
```
3030

3131
## **License**

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
#!/usr/bin/env node
22

33
const ltClient = require("@lambdatest/node-rest-client");
4+
45
const fetchSession = async (options) => {
56
// read credentials from env
67

78
if (!process.env.LT_ACCESS_KEY || !process.env.LT_USERNAME) {
89
console.log("Access and username is required");
9-
throw new Error("User name and Access is required parameter");
10+
throw new Error("User name and Access Key is required parameter");
1011
}
1112

1213
// read build name from env
1314
if (!process.env.LT_BUILD) {
14-
console.log(" Please set Build name to env");
15+
console.log(" Please set Build name to env <LT_BUILD>");
1516
throw new Error("Build name is required");
1617
}
1718

@@ -22,7 +23,6 @@ const fetchSession = async (options) => {
2223

2324
if (!options) {
2425
// using default options
25-
console.log("Setting default configurations");
2626
options = {
2727
buildLimt: 20,
2828
buildName: process.env.LT_BUILD,

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "@lambdatest/node-fetch-sessions",
3-
"version": "1.0.0",
4-
"description": "This plugin fetches session details based on build name",
5-
"main": "LTresults.js",
3+
"version": "1.0.1",
4+
"description": "This CLI fetches lambdatest automation test session details based on build name",
5+
"main": "index.js",
66
"bin": {
77
"fetch-LT-sessions": "./index.js"
88
},

0 commit comments

Comments
 (0)