pkg(*-*): Fix uninstall

This commit is contained in:
Dan Vargas 2021-04-10 16:48:33 -05:00
parent 81cdc766b6
commit d3ce08b170
3 changed files with 6 additions and 6 deletions

View file

@ -2,7 +2,7 @@ const chalk = require('chalk');
exports.command = ['uninstall <language> <language-version>']
exports.aliases = ['u']
exports.describe = 'Installs the named package'
exports.describe = 'Uninstalls the named package'
const msg_format = {
@ -14,9 +14,9 @@ const msg_format = {
exports.handler = async function({axios, language, languageVersion}){
try{
const install = await axios.delete(`/packages/${language}/${languageVersion}`)
const uninstall = await axios.delete(`/packages/${language}/${languageVersion}`)
console.log(msg_format.color(install.data));
console.log(msg_format.color(uninstall.data));
}catch({response}){
console.error(response.data.message)
}