@rbxts/centurion-ui 1.0.0-dev-84057f1 → 1.0.0-dev-814be1e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
-- Compiled with roblox-ts v2.3.0-dev-26ec859
|
|
2
2
|
local TS = _G[script]
|
|
3
|
+
local RegistryPath = TS.import(script, TS.getModule(script, "@rbxts", "centurion").out).RegistryPath
|
|
3
4
|
local ArrayUtil = TS.import(script, TS.getModule(script, "@rbxts", "centurion").out.shared.util.data).ArrayUtil
|
|
4
5
|
local _string = TS.import(script, TS.getModule(script, "@rbxts", "centurion").out.shared.util.string)
|
|
5
6
|
local endsWithSpace = _string.endsWithSpace
|
|
@@ -117,6 +118,7 @@ local function Terminal()
|
|
|
117
118
|
local atNextPart = endsWithSpace(text)
|
|
118
119
|
local path = getValidPath(api.registry, parts)
|
|
119
120
|
local command = if path ~= nil then api.registry:getCommand(path) else nil
|
|
121
|
+
local atCommand = command ~= nil
|
|
120
122
|
if command ~= nil then
|
|
121
123
|
-- Check for missing arguments
|
|
122
124
|
local missing = getMissingArgs(command, parts)
|
|
@@ -140,12 +142,7 @@ local function Terminal()
|
|
|
140
142
|
terminalArgIndex(argIndex)
|
|
141
143
|
if command == nil or argIndex == -1 then
|
|
142
144
|
-- Get command suggestions
|
|
143
|
-
local
|
|
144
|
-
local _parentPath = path
|
|
145
|
-
if _parentPath ~= nil then
|
|
146
|
-
_parentPath = _parentPath:slice(0, index)
|
|
147
|
-
end
|
|
148
|
-
local parentPath = _parentPath
|
|
145
|
+
local parentPath = if not (#parts == 0) then RegistryPath.new(ArrayUtil.slice(parts, 0, #parts - (if atNextPart then 0 else 1))) else nil
|
|
149
146
|
local _exp = api.registry
|
|
150
147
|
local _result = parentPath
|
|
151
148
|
if _result ~= nil then
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rbxts/centurion-ui",
|
|
3
3
|
"description": "Terminal UI for the Centurion command framework",
|
|
4
|
-
"version": "1.0.0-dev-
|
|
4
|
+
"version": "1.0.0-dev-814be1e",
|
|
5
5
|
"author": "paradoxuum",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "out/init.lua",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"dev": "shx rm -rf out && rbxtsc -w"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@rbxts/centurion": "^1.0.0-dev-
|
|
35
|
+
"@rbxts/centurion": "^1.0.0-dev-814be1e",
|
|
36
36
|
"@rbxts/compiler-types": "2.3.0-types.1",
|
|
37
37
|
"@rbxts/types": "^1.0.794",
|
|
38
38
|
"roblox-ts": "2.3.0-dev-26ec859",
|