ci: format
This commit is contained in:
parent
4381b9f861
commit
871fa321bd
2 changed files with 12 additions and 4 deletions
|
|
@ -95,7 +95,12 @@ local function parse_command(args)
|
||||||
elseif first == 'interact' then
|
elseif first == 'interact' then
|
||||||
local inter = args[2]
|
local inter = args[2]
|
||||||
if inter and inter ~= '' then
|
if inter and inter ~= '' then
|
||||||
return { type = 'action', action = 'interact', requires_context = true, interactor_cmd = inter }
|
return {
|
||||||
|
type = 'action',
|
||||||
|
action = 'interact',
|
||||||
|
requires_context = true,
|
||||||
|
interactor_cmd = inter,
|
||||||
|
}
|
||||||
else
|
else
|
||||||
return { type = 'action', action = 'interact', requires_context = true }
|
return { type = 'action', action = 'interact', requires_context = true }
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -44,9 +44,12 @@ end, {
|
||||||
table.insert(candidates, 'cache')
|
table.insert(candidates, 'cache')
|
||||||
table.insert(candidates, 'pick')
|
table.insert(candidates, 'pick')
|
||||||
if platform and contest_id then
|
if platform and contest_id then
|
||||||
vim.list_extend(candidates, vim.tbl_filter(function(a)
|
vim.list_extend(
|
||||||
|
candidates,
|
||||||
|
vim.tbl_filter(function(a)
|
||||||
return a ~= 'pick' and a ~= 'cache'
|
return a ~= 'pick' and a ~= 'cache'
|
||||||
end, actions))
|
end, actions)
|
||||||
|
)
|
||||||
local cache = require('cp.cache')
|
local cache = require('cp.cache')
|
||||||
cache.load()
|
cache.load()
|
||||||
local contest_data = cache.get_contest_data(platform, contest_id)
|
local contest_data = cache.get_contest_data(platform, contest_id)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue