Skip to content

Commit

Permalink
Added logic to support git+ssh repo urls.
Browse files Browse the repository at this point in the history
  • Loading branch information
RasPhilCo committed Jun 17, 2020
1 parent 33f8dd2 commit fb66167
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/commands/plugins/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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('@')
Expand Down

0 comments on commit fb66167

Please sign in to comment.