Skip to content

Command reference

James Tai edited this page Jun 27, 2021 · 2 revisions

coman init

coman init

Initialize the coman project. This creates a default Coman.toml if it doesn't yet exist, and creates the src and test directories if they don't yet exist.

coman run

coman
coman r [SOLUTION]
coman run [SOLUTION]

Build and run the solution. SOLUTION is a path to a source file. If no solution is given, then build and run the most recently modified one.

coman test

coman t [SOLUTION] [TEST ...]
coman test [SOLUTION] [TEST ...]

Build and test the solution. SOLUTION is a path to a source file. If no solution is given, then use the most recently modified one. TEST is the name of a test (the filename without the .in or .out extension). If no tests are given, then run all available tests.

coman debug

coman d [SOLUTION]
coman debug [SOLUTION]

Build the solution in debug mode and launch the configured debugger. SOLUTION is a path to a source file. If no solution is given, then use the most recently modified one.

coman build

coman b [-d] [-o OUTPUT] [SOLUTION ...]
coman build [-d] [-o OUTPUT] [SOLUTION ...]

Build the solution(s). SOLUTION is a path to a source file. If no solutions are given, then build the most recently modified one.

If -d is given, then build in debug mode.

If -o OUTPUT is given, then copy the compiled binary to the specified output location, creating its parent directories if necessary.

coman clean

coman c [SOLUTION]
coman c --all
coman clean [SOLUTION]
coman clean --all

Delete the compiled solution. SOLUTION is a path to a source file. If no solution is given, then use the most recently modified one. If --all is given, then delete all compiled solutions.