Lines Matching defs:cli
33 local cli = {}
92 -- functions. This is global pollution, but the clearly separated 'cli' looks
103 local cmd = cli[cmd_name]
122 function cli.boot(...)
123 local _, argv = cli.arguments(...)
132 function cli.autoboot(...)
133 local _, argv = cli.arguments(...)
138 cli['boot-conf'] = function(...)
139 local _, argv = cli.arguments(...)
148 cli['read-conf'] = function(...)
149 local _, argv = cli.arguments(...)
153 cli['reload-conf'] = function(...)
157 cli["enable-module"] = function(...)
158 local _, argv = cli.arguments(...)
167 cli["disable-module"] = function(...)
168 local _, argv = cli.arguments(...)
177 cli["toggle-module"] = function(...)
178 local _, argv = cli.arguments(...)
188 cli["show-module-options"] = function()
243 -- Used for splitting cli varargs into cmd_name and the rest of argv
244 function cli.arguments(...)
251 return cli