comparison Libs/AceConfig-3.0/AceConfigCmd-3.0/AceConfigCmd-3.0.lua @ 18:a0dcdcaec1ea v7.3.0.018

- toc update. - libs update.
author Tercio
date Tue, 17 Oct 2017 10:02:01 -0200
parents ce416064d8a1
children
comparison
equal deleted inserted replaced
17:da84a5064a5a 18:a0dcdcaec1ea
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