Files
threshold-ui/e2e-tests/helpers/boundary-cli.js
T

38 lines
1.2 KiB
JavaScript
Raw Normal View History

2024-11-12 11:21:37 -05:00
/**
2026-01-28 17:09:06 -08:00
* Copyright IBM Corp. 2021, 2026
2024-11-12 11:21:37 -05:00
* SPDX-License-Identifier: BUSL-1.1
*/
import { execSync } from 'node:child_process';
export * from './boundary-cli/accounts.js';
export * from './boundary-cli/aliases.js';
export * from './boundary-cli/auth-methods.js';
export * from './boundary-cli/authenticate.js';
export * from './boundary-cli/cache.js';
2024-11-12 11:21:37 -05:00
export * from './boundary-cli/connect.js';
export * from './boundary-cli/credential-stores.js';
export * from './boundary-cli/credentials.js';
export * from './boundary-cli/groups.js';
export * from './boundary-cli/host-catalogs.js';
export * from './boundary-cli/host-sets.js';
export * from './boundary-cli/hosts.js';
export * from './boundary-cli/policies.js';
export * from './boundary-cli/roles.js';
export * from './boundary-cli/scopes.js';
export * from './boundary-cli/session-recordings.js';
export * from './boundary-cli/storage-buckets.js';
export * from './boundary-cli/targets.js';
export * from './boundary-cli/users.js';
export * from './boundary-cli/workers.js';
/**
* Checks that the boundary cli is available
*/
export async function checkBoundaryCli() {
try {
execSync('which boundary');
2026-02-27 13:32:27 -05:00
} catch {
2024-11-12 11:21:37 -05:00
throw new Error('boundary does not exist on the path');
}
}