UNPKG

@axway/axway-cli-oum

Version:

Axway Amplify platform organization and user management CLI

24 lines (19 loc) 691 B
import { initSDK, isHeadless } from '@axway/amplify-cli-utils'; import snooplogg from 'snooplogg'; import pkg from 'open'; var credentials = { desc: 'Opens a web browser to the change your password page', async action({ console }) { const { highlight } = snooplogg.styles; const { sdk } = initSDK(); const open = pkg; if (isHeadless()) { throw new Error('Changing your login credentials requires a web browser and is unsupported in headless environments'); } const url = `${sdk.platformUrl}#/user/credentials`; console.log(`Opening web browser to ${highlight(url)}`); await open(url); } }; export { credentials as default }; //# sourceMappingURL=credentials.js.map