All files / src/commands/ssh-keys ssh-keys.open.command.js

91.66% Statements 11/12
100% Branches 1/1
0% Functions 0/1
91.66% Lines 11/12

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13193x 193x 193x 193x 193x 193x 193x 193x 193x   193x 193x  
import { defineCommand } from '../../lib/define-command.js';
import { openBrowser } from '../../models/utils.js';
 
export const sshKeysOpenCommand = defineCommand({
  description: 'Open the SSH keys management page in the Console',
  since: '3.13.0',
  options: {},
  args: [],
  handler() {
    return openBrowser('/users/me/ssh-keys', 'Opening the SSH keys page in the browser…');
  },
});