Mercurial > wow > hotcorners
comparison Libs/AceConfig-3.0/AceConfigCmd-3.0/AceConfigCmd-3.0.lua @ 17:3000eccbf1a0 v7.3.0.017
- ToC Update.
author | Tercio |
---|---|
date | Sat, 02 Sep 2017 14:10:48 -0300 |
parents | fc346da3afd9 |
children |
comparison
equal
deleted
inserted
replaced
16:6c64dd7f16a2 | 17:3000eccbf1a0 |
---|---|
1 --- AceConfigCmd-3.0 handles access to an options table through the "command line" interface via the ChatFrames. | 1 --- AceConfigCmd-3.0 handles access to an options table through the "command line" interface via the ChatFrames. |
2 -- @class file | 2 -- @class file |
3 -- @name AceConfigCmd-3.0 | 3 -- @name AceConfigCmd-3.0 |
4 -- @release $Id: AceConfigCmd-3.0.lua 1045 2011-12-09 17:58:40Z nevcairiel $ | 4 -- @release $Id: AceConfigCmd-3.0.lua 1161 2017-08-12 14:30:16Z funkydude $ |
5 | 5 |
6 --[[ | 6 --[[ |
7 AceConfigCmd-3.0 | 7 AceConfigCmd-3.0 |
8 | 8 |
9 Handles commandline optionstable access | 9 Handles commandline optionstable access |
12 | 12 |
13 ]] | 13 ]] |
14 | 14 |
15 -- TODO: plugin args | 15 -- TODO: plugin args |
16 | 16 |
17 | 17 local cfgreg = LibStub("AceConfigRegistry-3.0") |
18 local MAJOR, MINOR = "AceConfigCmd-3.0", 13 | 18 |
19 local MAJOR, MINOR = "AceConfigCmd-3.0", 14 | |
19 local AceConfigCmd = LibStub:NewLibrary(MAJOR, MINOR) | 20 local AceConfigCmd = LibStub:NewLibrary(MAJOR, MINOR) |
20 | 21 |
21 if not AceConfigCmd then return end | 22 if not AceConfigCmd then return end |
22 | 23 |
23 AceConfigCmd.commands = AceConfigCmd.commands or {} | 24 AceConfigCmd.commands = AceConfigCmd.commands or {} |
24 local commands = AceConfigCmd.commands | 25 local commands = AceConfigCmd.commands |
25 | 26 |
26 local cfgreg = LibStub("AceConfigRegistry-3.0") | |
27 local AceConsole -- LoD | 27 local AceConsole -- LoD |
28 local AceConsoleName = "AceConsole-3.0" | 28 local AceConsoleName = "AceConsole-3.0" |
29 | 29 |
30 -- Lua APIs | 30 -- Lua APIs |
31 local strsub, strsplit, strlower, strmatch, strtrim = string.sub, string.split, string.lower, string.match, string.trim | 31 local strsub, strsplit, strlower, strmatch, strtrim = string.sub, string.split, string.lower, string.match, string.trim |