feat(picker): announce scraping to user for clarification
This commit is contained in:
parent
9d92021fcf
commit
3edc3db8aa
1 changed files with 11 additions and 25 deletions
|
|
@ -162,31 +162,17 @@ function M.scrape_problem(ctx)
|
||||||
|
|
||||||
local plugin_path = utils.get_plugin_path()
|
local plugin_path = utils.get_plugin_path()
|
||||||
|
|
||||||
local args
|
local args = {
|
||||||
if ctx.contest == 'cses' then
|
'uv',
|
||||||
args = {
|
'run',
|
||||||
'uv',
|
'--directory',
|
||||||
'run',
|
plugin_path,
|
||||||
'--directory',
|
'-m',
|
||||||
plugin_path,
|
'scrapers.' .. ctx.contest,
|
||||||
'-m',
|
'tests',
|
||||||
'scrapers.' .. ctx.contest,
|
ctx.contest_id,
|
||||||
'tests',
|
ctx.problem_id,
|
||||||
ctx.problem_id,
|
}
|
||||||
}
|
|
||||||
else
|
|
||||||
args = {
|
|
||||||
'uv',
|
|
||||||
'run',
|
|
||||||
'--directory',
|
|
||||||
plugin_path,
|
|
||||||
'-m',
|
|
||||||
'scrapers.' .. ctx.contest,
|
|
||||||
'tests',
|
|
||||||
ctx.contest_id,
|
|
||||||
ctx.problem_id,
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
local result = vim
|
local result = vim
|
||||||
.system(args, {
|
.system(args, {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue