Comparison

prosodyctl @ 10179:2364e9533d0e

prosodyctl: Removed unnecessary comments from the remove command
author João Duarte <jvsDuarte08@gmail.com>
date Wed, 31 Jul 2019 05:55:32 -0700
parent 10178:badc8610bfdf
child 10182:bb7d537e6fba
comparison
equal deleted inserted replaced
10178:badc8610bfdf 10179:2364e9533d0e
112 function commands.remove(arg) 112 function commands.remove(arg)
113 if arg[1] == "--help" then 113 if arg[1] == "--help" then
114 show_usage([[remove]], [[Removes a module installed in the wroking directory's plugins folder]]); 114 show_usage([[remove]], [[Removes a module installed in the wroking directory's plugins folder]]);
115 return 1; 115 return 1;
116 end 116 end
117 -- I'm considering that we are using just one path to custom plugins, and it is the first in prosody.paths.plugins, for now
118 local installer_plugin_path = prosodyctl.get_path_custom_plugins(prosody.paths.plugins) 117 local installer_plugin_path = prosodyctl.get_path_custom_plugins(prosody.paths.plugins)
119 local flag = "--tree=" 118 local flag = "--tree="
120 -- I'm considering this optional flag comes first 119 -- I'm considering this optional flag comes first
121 if arg[1] and arg[1]:sub(1, #flag) == flag then 120 if arg[1] and arg[1]:sub(1, #flag) == flag then
122 local dir = arg[1]:match("=(.+)$") 121 local dir = arg[1]:match("=(.+)$")