mirror of
https://github.com/kepler155c/opus
synced 2025-11-09 20:13:00 +00:00
spaces->tabs + cleanup + pathing fixes
This commit is contained in:
@@ -7,32 +7,32 @@ local shell = _ENV.shell
|
||||
|
||||
local args = { ... }
|
||||
if not args[1] then
|
||||
error('Syntax: cedit <filename>')
|
||||
error('Syntax: cedit <filename>')
|
||||
end
|
||||
|
||||
if not _G.http.websocket then
|
||||
error('Requires CC: Tweaked')
|
||||
error('Requires CC: Tweaked')
|
||||
end
|
||||
|
||||
if not _G.cloud_catcher then
|
||||
local key = Config.load('cloud').key
|
||||
local key = Config.load('cloud').key
|
||||
|
||||
if not key then
|
||||
print('Visit https://cloud-catcher.squiddev.cc')
|
||||
print('Paste key: ')
|
||||
key = read()
|
||||
if #key == 0 then
|
||||
return
|
||||
end
|
||||
end
|
||||
if not key then
|
||||
print('Visit https://cloud-catcher.squiddev.cc')
|
||||
print('Paste key: ')
|
||||
key = read()
|
||||
if #key == 0 then
|
||||
return
|
||||
end
|
||||
end
|
||||
|
||||
-- open an unfocused tab
|
||||
local id = shell.openTab('cloud ' .. key)
|
||||
print('Connecting...')
|
||||
while not _G.cloud_catcher do
|
||||
os.sleep(.2)
|
||||
end
|
||||
multishell.setTitle(id, 'Cloud')
|
||||
-- open an unfocused tab
|
||||
local id = shell.openTab('cloud ' .. key)
|
||||
print('Connecting...')
|
||||
while not _G.cloud_catcher do
|
||||
os.sleep(.2)
|
||||
end
|
||||
multishell.setTitle(id, 'Cloud')
|
||||
end
|
||||
|
||||
shell.run('cloud edit ' .. table.unpack({ ... }))
|
||||
|
||||
Reference in New Issue
Block a user