Skip to content

Commit e7da4d3

Browse files
Make the user agent string tailorable via the process environment (#243)
* User agent string tailorable from environment * User agent setting change justifies version 4.1
1 parent a765ce0 commit e7da4d3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nimbella/nimbella-cli",
3-
"version": "4.0.2",
3+
"version": "4.1.0",
44
"description": "A comprehensive CLI for the Nimbella stack",
55
"main": "lib/index.js",
66
"repository": {

src/main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export async function run(): Promise<void> {
2121
const topics = pj.oclif.topics
2222
const topicNames = Object.keys(topics)
2323
// Compute user agent
24-
const userAgent = 'nimbella-cli/' + pj.version
24+
const userAgent = process.env.NIM_USER_AGENT || 'nimbella-cli/' + pj.version
2525
// Initialize the API environment
2626
initializeAPI(userAgent)
2727
// Split an initial colon-separated topic:command token if found. As the topic portion could be an alias, we look for that case also

0 commit comments

Comments
 (0)