From fb6616754ed45ea113636e5ef6c0865c9f613a41 Mon Sep 17 00:00:00 2001 From: Philipe Navarro Date: Wed, 17 Jun 2020 11:53:27 -0700 Subject: [PATCH] Added logic to support git+ssh repo urls. --- src/commands/plugins/install.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/commands/plugins/install.ts b/src/commands/plugins/install.ts index 1c98ed50..8de9191d 100644 --- a/src/commands/plugins/install.ts +++ b/src/commands/plugins/install.ts @@ -63,6 +63,9 @@ e.g. If you have a core plugin that has a 'hello' command, installing a user-ins /* eslint-enable no-await-in-loop */ async parsePlugin(input: string): Promise<{name: string; tag: string; type: 'npm'} | {url: string; type: 'repo'}> { + if (input.startsWith('git+ssh://')) { + return {url: input, type: 'repo'} + } if (input.includes('@') && input.includes('/')) { input = input.slice(1) const [name, tag = 'latest'] = input.split('@')