|
|
|
@ -77,23 +77,24 @@ export class RemixClient extends PluginClient { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
async cloneVyperRepo() { |
|
|
|
|
async cloneVyperRepo(count?: number) { |
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
// @ts-ignore
|
|
|
|
|
this.call('notification', 'toast', 'cloning Snekmate Vyper repository...') |
|
|
|
|
this.call('notification', 'toast', 'cloning Vyper-lang repository...') |
|
|
|
|
await this.call('manager', 'activatePlugin', 'dGitProvider') |
|
|
|
|
await this.call( |
|
|
|
|
'dGitProvider', |
|
|
|
|
'clone', |
|
|
|
|
{url: 'https://github.com/pcaversaccio/snekmate', token: null, branch: 'v0.0.5'}, |
|
|
|
|
{ url: 'https://github.com/vyperlang/vyper', token: null, branch: 'v0.3.10' }, |
|
|
|
|
// @ts-ignore
|
|
|
|
|
'snekmate' |
|
|
|
|
(count === undefined || count === 0) ? 'vyper-lang' : `vyper-lang_${count}` |
|
|
|
|
) |
|
|
|
|
this.call( |
|
|
|
|
// @ts-ignore
|
|
|
|
|
'notification', |
|
|
|
|
'toast', |
|
|
|
|
'Snekmate Vyper repository cloned, the workspace snekmate has been created.' |
|
|
|
|
'Vyper repository cloned, the workspace Vyper has been created.' |
|
|
|
|
) |
|
|
|
|
} catch (e) { |
|
|
|
|
// @ts-ignore
|
|
|
|
|