termicoder¶
view, code & submit problems directly from terminal.
termicoder [OPTIONS] COMMAND [ARGS]...
main¶
creates & open code file with template code.
you can edit template code and default editors using flags -et and -ed respectively
termicoder main [OPTIONS]
Options
-
-f
,
--file
<code_file>
¶ the filename to code into with preloaded template
-
-et
,
--edit_templates
¶
open templates folder
-
-ed
,
--edit_defaults
¶
edit defaults for editors
main¶
Start an interactive shell. All commands and subcommands are available in it.
If stdin is not a TTY, no prompt will be printed, but only commands read from stdin.
termicoder main [OPTIONS]
main¶
view contests, problems and problem statement
termicoder main [OPTIONS] COMMAND [ARGS]...
main¶
display the termicoder contents in current/passed folder
if it is a contest folder it displays the list of problems. if its a problem folder, displays the problem in a browser.
termicoder main main [OPTIONS] [DIR]
Options
-
-ed
,
--edit_defaults
¶
edit default web browser
Arguments
-
DIR
¶
Optional argument
main¶
submit a solution.
you should be in a problem directory to submit
script will prompt you to login into the judge(if not already). this submits the problem using data in [.problem] file in current directory
termicoder main [OPTIONS]
Options
-
-f
,
--file
<code_file>
¶ the code file
main¶
launches custom debug interface (in future) where you can use testcase generator, launch debugger for the particular language and visualize the output
termicoder main [OPTIONS]
main¶
sets up problem, contests and login.
1. if you pass judge and –login/–logout, it logs you in and out of the judge
2. if you pass judge and contest/category it downloads all the problems of that contest.
3. if you pass a particular problem, with judge and contest/category, it sets up that problem.
all this happens in the current folder. option of contest/category may vary amongst various online judges
termicoder main [OPTIONS] COMMAND [ARGS]...
Options
-
-j
,
--judge
<judge>
¶
-
-c
,
--contest
<contest>
¶ contest code
-
-p
,
--problem
<problem>
¶ problem code
-
--login
¶
-
--logout
¶
main¶
configure termicoder settings, autocomplete etc.
termicoder main [OPTIONS] COMMAND [ARGS]...
main¶
Shell completion for termicoder.
Available shell types:
- bash Bourne again shell fish Friendly interactive shell powershell Windows PowerShell zsh Z shell
Default type: auto
termicoder main main [OPTIONS] COMMAND [ARGS]...
main¶
Show the click-completion-command completion code
termicoder main main main [OPTIONS] [SHELL]
Options
-
-i
,
--case-insensitive
,
--no-case-insensitive
¶
Case insensitive completion
Arguments
-
SHELL
¶
Optional argument
main¶
Install the click-completion-command completion
termicoder main main main [OPTIONS] [SHELL] [PATH]
Options
-
--append
,
--overwrite
¶
Append the completion code to the file
-
-i
,
--case-insensitive
,
--no-case-insensitive
¶
Case insensitive completion
Arguments
-
SHELL
¶
Optional argument
-
PATH
¶
Optional argument
main¶
test code against the sample testcases.
this command (compiles and) runs passed code file. the code is run against all [.in] files in ./testcases folder. the output is produced in [.outx] files and checked against [.out] files
it displays time for each testcase,status and diff of expected and produced outputs.
termicoder main [OPTIONS]
Options
-
-f
,
--file
<code_file>
¶ the code file
-
-tl
,
--timelimit
<timelimit>
¶ the max time per testcase
-
-l
,
--live
¶
test the code live and don’t use testcases
-
-es
,
--edit_scripts
¶