mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-21 12:36:28 +02:00
no version = latest version
This commit is contained in:
parent
589dfec6df
commit
f683dfc2cf
3 changed files with 11 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
|||
const chalk = require('chalk');
|
||||
|
||||
exports.command = ['uninstall <language> <language-version>']
|
||||
exports.command = ['uninstall <language> [language-version]']
|
||||
exports.aliases = ['u']
|
||||
exports.describe = 'Uninstalls the named package'
|
||||
|
||||
|
@ -14,7 +14,7 @@ const msg_format = {
|
|||
|
||||
exports.handler = async function({axios, language, languageVersion}){
|
||||
try{
|
||||
const uninstall = await axios.delete(`/api/v1/packages/${language}/${languageVersion}`)
|
||||
const uninstall = await axios.delete(`/api/v1/packages/${language}/${languageVersion || '*'}`)
|
||||
|
||||
console.log(msg_format.color(uninstall.data));
|
||||
}catch({response}){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue