Uninstallation (#211)

This commit is contained in:
Thomas Hobson 2021-04-10 16:10:18 +12:00
parent a2de8dea0c
commit 81cdc766b6
No known key found for this signature in database
GPG key ID: 9F1FD9D87950DB6F
4 changed files with 77 additions and 5 deletions

View file

@ -63,6 +63,11 @@ class Runtime {
toString() {
return `${this.language}-${this.version.raw}`;
}
unregister() {
const index = runtimes.indexOf(this);
runtimes.splice(index, 1); //Remove from runtimes list
}
}
module.exports = runtimes;