Skip to content

Commit

Permalink
Chore/show connectors backbone baseurl on startup (#31)
Browse files Browse the repository at this point in the history
* chore: update settings

* chore: add more bins

* chore: sort-package-json

* chore: show baseurl

* chore: version bump
  • Loading branch information
jkoenig134 authored Jan 3, 2024
1 parent dc5904f commit 4e7e2d2
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"editor.formatOnPaste": true,
"files.autoSave": "off",
"editor.codeActionsOnSave": {
"source.organizeImports": true
"source.organizeImports": "explicit"
},
"files.eol": "\n",
"todo-tree.filtering.excludeGlobs": ["**/node_modules/**", "**/dist/**", "**/dist-test/**", "**/lib-web/**", "**/*.min.*", "**/*.map"],
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

16 changes: 9 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
{
"name": "@nmshd/connector-tui",
"version": "1.2.0",
"version": "1.2.1",
"repository": "github:nmshd/connector-tui",
"license": "MIT",
"author": "j&s-soft GmbH",
"type": "module",
"main": "index.js",
"bin": {
"connector_tui": "dist/index.js"
"connector-tui": "dist/index.js",
"connector_tui": "dist/index.js",
"ctui": "dist/index.js"
},
"files": [
"index.js",
Expand All @@ -21,8 +23,8 @@
"lint:eslint": "eslint --ext .ts ./src",
"lint:prettier": "prettier --check ./src",
"start": "node --loader ts-node/esm src/index.ts",
"watch": "node --watch --loader ts-node/esm src/index.ts",
"test": "echo 'no test specified'"
"test": "echo 'no test specified'",
"watch": "node --watch --loader ts-node/esm src/index.ts"
},
"dependencies": {
"@nmshd/connector-sdk": "^2.2.5",
Expand All @@ -46,11 +48,11 @@
"ts-node": "^10.9.1",
"typescript": "^5.3.2"
},
"engines": {
"node": ">=19.0.0"
},
"publishConfig": {
"access": "public",
"provenance": true
},
"engines": {
"node": ">=19.0.0"
}
}
4 changes: 4 additions & 0 deletions src/ConnectorTUI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,14 @@ export class ConnectorTUI extends ConnectorTUIBaseWithMixins {
const jsonString = (await readFile(new URL("../package.json", import.meta.url))).toString()
const packageJson = JSON.parse(jsonString)

const support = await this.connectorClient.monitoring.getSupport()
const baseUrl = (support.configuration.transportLibrary as any)?.baseUrl

console.log(`Welcome to the ${chalk.blue("Enmeshed V2 TUI")}!`)
console.log(`TUI Version: ${chalk.yellow(packageJson.version)}`)
console.log(`Connector version: ${chalk.yellow(connectorVersionInfo.version)}`)
console.log(`Connector Address: ${chalk.yellow(this.connectorAddress)}`)
console.log(`Connector Backbone BaseURL: ${chalk.yellow(baseUrl)}`)
console.log("")
}
}

0 comments on commit 4e7e2d2

Please sign in to comment.