Software / code / prosody
Comparison
prosodyctl @ 10159:2eabac18e3dc
prosodyctl: Removed the admin_add and admin_remove from the commands_order variable
| author | João Duarte <jvsDuarte08@gmail.com> |
|---|---|
| date | Wed, 24 Jul 2019 04:53:02 -0700 |
| parent | 10157:c6e166272d94 |
| child | 10160:320ae3831b34 |
comparison
equal
deleted
inserted
replaced
| 10158:2cb48153f9e0 | 10159:2eabac18e3dc |
|---|---|
| 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", "enabled_plugins", | 1451 local commands_order = { "adduser", "passwd", "deluser", "start", "stop", "restart", "reload", "about", "local_plugins", |
| 1452 "admin_add", "admin_remove", "list", }; | 1452 "enabled_plugins", "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]; |