Comparison

prosodyctl @ 10160:320ae3831b34

prosodyctl: Added the install and remove arguments to the reorganized commands_order variable
author João Duarte <jvsDuarte08@gmail.com>
date Wed, 24 Jul 2019 04:59:46 -0700
parent 10159:2eabac18e3dc
child 10161:ea10561e5566
comparison
equal deleted inserted replaced
10159:2eabac18e3dc 10160:320ae3831b34
1446 print("Usage: "..arg[0].." COMMAND [OPTIONS]"); 1446 print("Usage: "..arg[0].." COMMAND [OPTIONS]");
1447 print(""); 1447 print("");
1448 print("Where COMMAND may be one of:\n"); 1448 print("Where COMMAND may be one of:\n");
1449 1449
1450 local hidden_commands = require "util.set".new{ "register", "unregister", "addplugin" }; 1450 local hidden_commands = require "util.set".new{ "register", "unregister", "addplugin" };
1451 local commands_order = { "adduser", "passwd", "deluser", "start", "stop", "restart", "reload", "about", "local_plugins", 1451 local commands_order = { "install", "remove", "list", "enabled_plugins", "local_plugins","adduser", "passwd", "deluser", "start", "stop", "restart",
1452 "enabled_plugins", "list"}; 1452 "reload", "about", "list" };
1453 1453
1454 local done = {}; 1454 local done = {};
1455 1455
1456 for _, command_name in ipairs(commands_order) do 1456 for _, command_name in ipairs(commands_order) do
1457 local command_func = commands[command_name]; 1457 local command_func = commands[command_name];