Skip to content

Commit

Permalink
scan script update
Browse files Browse the repository at this point in the history
  • Loading branch information
nbonamy committed Oct 1, 2024
1 parent 1edd6bf commit a23d813
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nestor-client",
"version": "0.2.2",
"version": "0.3.0",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
Expand Down
11 changes: 5 additions & 6 deletions client/src/scan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,13 @@
const status = await client.status()
console.log(`Found ${status.hubs.length} hub(s)`)
for (const hub of status.hubs) {
console.log(` - ${hub.name} @ ${hub.host}:${hub.port}`)
console.log(` * ${hub.name} @ ${hub.host}:${hub.port}`)
for (const tool of hub.tools) {
console.log(` - ${tool}`)
}
}

// now service list
const list = await client.list()
console.log(`\nServices:`)
console.log(list.map((s) => { return { name: s.function.name, description: s.function.description } }))

// done
process.exit(0)

})()

0 comments on commit a23d813

Please sign in to comment.