10000 Merge pull request #76 from cloudgraphdev/fix/CG-1080 · cloudgraphdev/cli@2c0c4fb · GitHub
[go: up one dir, main page]

Skip to content

Commit 2c0c4fb

Browse files
authored
Merge pull request #76 from cloudgraphdev/fix/CG-1080
fix: Update scan/load output of query engine location to be accurate
2 parents 3f6a26e + af74605 commit 2c0c4fb

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/commands/base.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -156,18 +156,15 @@ homebrew: 1. ${chalk.italic.green('brew update')} \n
156156
await queryEngine.startServer(
157157
this.getHost(await this.getConnectionSettings())
158158
)
159+
const queryEngineUrl = `http://localhost:${availablePort}/${await this.getQueryEngine()}`
159160
this.logger.success(
160-
`Serving query engine at ${chalk.underline.green(
161-
`http://localhost:${availablePort}`
162-
)}`
161+
`Serving query engine at ${chalk.underline.green(queryEngineUrl)}`
163162
)
164163
try {
165-
await openBrowser(
166-
`http://localhost:${availablePort}/${await this.getQueryEngine()}`
167-
)
164+
await openBrowser(queryEngineUrl)
168165
} catch (error) {
169166
this.logger.warn(
170-
`Could not open a browser tab with query engine, open manually at http://localhost:${availablePort}`
167+
`Could not open a browser tab with query engine, open manually at ${queryEngineUrl}`
171168
)
172169
}
173170
}

0 commit comments

Comments
 (0)
0