Browse Source

Actual switch syntax for multiple values

environments/development/deployments/32
Drew Short 7 years ago
parent
commit
799dbc7c90
  1. 6
      src/spm/spm.moon

6
src/spm/spm.moon

@ -480,11 +480,11 @@ switch args[1]
printPackages(listPackages(args[2])) printPackages(listPackages(args[2]))
when "info" when "info"
provideInfo(args[2]) provideInfo(args[2])
when "install" or "add"
when "install", "add"
installPackage(args[2], args[3], false) installPackage(args[2], args[3], false)
when "update" or "upgrade"
when "update", "upgrade"
updatePackage(args[2]) updatePackage(args[2])
when "uninstall" or "remove"
when "uninstall", "remove"
uninstallPackage(args[2]) uninstallPackage(args[2])
when "copy" when "copy"
copyPackage(args[2], args[3]) copyPackage(args[2], args[3])

Loading…
Cancel
Save