feat: interactive terminal
This commit is contained in:
parent
6b4dd32683
commit
7efd6404b6
6 changed files with 82 additions and 23 deletions
|
|
@ -126,8 +126,10 @@ function M.handle_command(opts)
|
|||
local setup = require('cp.setup')
|
||||
local ui = require('cp.ui.panel')
|
||||
|
||||
if cmd.action == 'run' then
|
||||
ui.toggle_run_panel(cmd.debug)
|
||||
if cmd.action == 'interact' then
|
||||
ui.toggle_interactive()
|
||||
elseif cmd.action == 'run' then
|
||||
ui.close_run_panel(cmd.debug)
|
||||
elseif cmd.action == 'next' then
|
||||
setup.navigate_problem(1, cmd.language)
|
||||
elseif cmd.action == 'prev' then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue