fix: Fix cli path on windows to launch connect shell

This commit is contained in:
Susmitha Girumala committed 2021-06-05 22:11:47 -04:00
1 parent 7b2c8b7d58
commit 196d01aae2
3 files changed
+18 -14

No files matched your search

+2 -9
View File
@@ -1,16 +1,9 @@
const path = require('path');
const { isWindows } = require('../helpers/platform.js');
const { spawnSync } = require('../helpers/spawn-promise.js');
const cliPath = async () => {
let name = 'boundary';
if (isWindows()) name = 'boundary.exe';
return path.resolve(__dirname, '..', 'cli', name);
};
const { path } = require('./path.js');
module.exports = {
// Check boundary cli existence
exists: () => Boolean(cliPath()),
exists: () => Boolean(path()),
// Returns JSON-formatted version information from the CLI
version: () => {
+11
View File
@@ -0,0 +1,11 @@
const path = require('path');
const { isWindows } = require('../helpers/platform.js');
module.exports = {
// Returns boundary cli path
path: () => {
let name = 'boundary';
if (isWindows()) name = 'boundary.exe';
return path.resolve(__dirname, '..', '..', 'cli', name);
}
};