knob.h is a single-header library that serves as a way to build your C projects with a C executable.
As simple as(cc == your c compiler):
$ cc ./knob.c -o knob
$ ./knob
To test out the examples in vscode, modify the tasks.json
and launch.json
to specify the directory to the example you are testing.
launch.json
:
{
"name": "(knob) Launch",
// ...
"cwd": "${workspaceRoot}/examples/submodule",
//...
}
tasks.json
:
{
"label": "Build knob",
//...
"args": [
//...
"${workspaceFolder}/examples/submodule/knob.c",
//...
],
},
Much thanks goes to rexim on making nob and nobuild, the first iterations upon which knob is built.