diff --git a/packages/keyman/package.json b/packages/keyman/package.json index d78153d..44f0416 100644 --- a/packages/keyman/package.json +++ b/packages/keyman/package.json @@ -1,6 +1,6 @@ { "name": "@bitsquare/keyman", - "version": "0.7.1", + "version": "0.7.2", "description": "A system to simplify ssh key management", "keywords": [ "ssh", diff --git a/packages/keyman/src/keyman.copy.ts b/packages/keyman/src/keyman.copy.ts index 28dd59f..25643c4 100644 --- a/packages/keyman/src/keyman.copy.ts +++ b/packages/keyman/src/keyman.copy.ts @@ -22,7 +22,7 @@ export async function copyKey(sshDir: string, tmpDir: string) { const { selectedKey } = await inquirer.prompt<{ selectedKey: string }>([ { - type: 'list', + type: 'select', name: 'selectedKey', message: 'Select key to copy public key from:', choices: keys, diff --git a/packages/keyman/src/keyman.decrypt.ts b/packages/keyman/src/keyman.decrypt.ts index 9da132c..bf936dc 100644 --- a/packages/keyman/src/keyman.decrypt.ts +++ b/packages/keyman/src/keyman.decrypt.ts @@ -31,7 +31,7 @@ export async function decryptKeys(sshDir: string, keysDir: string, tmpDir: strin choices: vaultKeys, }, { - type: 'list', + type: 'select', name: 'decryptMode', message: 'Choose decryption location:', // Named after the directories actually in use, which are configurable. diff --git a/packages/keyman/src/keyman.generate.ts b/packages/keyman/src/keyman.generate.ts index 431ccb8..96e7af5 100644 --- a/packages/keyman/src/keyman.generate.ts +++ b/packages/keyman/src/keyman.generate.ts @@ -21,7 +21,7 @@ export interface KeyOptions { export async function promptKeyOptions(defaultIdentity?: string): Promise { const { algorithm } = await inquirer.prompt<{ algorithm: string }>([ { - type: 'list', + type: 'select', name: 'algorithm', message: 'Select algorithm:', choices: ['ed25519', 'rsa'], diff --git a/packages/keyman/src/keyman.main.ts b/packages/keyman/src/keyman.main.ts index 240fff0..1c4709b 100644 --- a/packages/keyman/src/keyman.main.ts +++ b/packages/keyman/src/keyman.main.ts @@ -67,7 +67,7 @@ export async function keyman() { // 🔹 Show category selection const { category } = await inquirer.prompt<{ category: string }>([ { - type: 'list', + type: 'select', name: 'category', message: 'Select operation:', choices: [ diff --git a/packages/keyman/src/keyman.rotate.ts b/packages/keyman/src/keyman.rotate.ts index 0f9b084..9aca763 100644 --- a/packages/keyman/src/keyman.rotate.ts +++ b/packages/keyman/src/keyman.rotate.ts @@ -120,7 +120,7 @@ export async function rotateKey( const { key } = await inquirer.prompt<{ key: string }>([ { - type: 'list', + type: 'select', name: 'key', message: 'Select the key to rotate:', choices: vaultKeys, @@ -180,7 +180,7 @@ export async function retireKey(sshDir: string, keysDir: string, tmpDir: string) const { key } = await inquirer.prompt<{ key: string }>([ { - type: 'list', + type: 'select', name: 'key', message: 'Select the key to retire:', choices: vaultKeys,