ci: format

This commit is contained in:
Barrett Ruth 2026-03-05 18:29:07 -05:00
parent 4381b9f861
commit 871fa321bd
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
2 changed files with 12 additions and 4 deletions

View file

@ -95,7 +95,12 @@ local function parse_command(args)
elseif first == 'interact' then
local inter = args[2]
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
return { type = 'action', action = 'interact', requires_context = true }
end

View file

@ -44,9 +44,12 @@ end, {
table.insert(candidates, 'cache')
table.insert(candidates, 'pick')
if platform and contest_id then
vim.list_extend(candidates, vim.tbl_filter(function(a)
return a ~= 'pick' and a ~= 'cache'
end, actions))
vim.list_extend(
candidates,
vim.tbl_filter(function(a)
return a ~= 'pick' and a ~= 'cache'
end, actions)
)
local cache = require('cp.cache')
cache.load()
local contest_data = cache.get_contest_data(platform, contest_id)