C project initializer that uses the nob.h build system.
I've been building minor scripts and testing a few things and have preferred using nob within some of these and well doing wget every time I start a new one it is slightly annoying me.
I come from the web dev space of starting things by doing a simple command like pnpm create vite and I wanted something similar for my minor exploration projects and scripts.
I actually wrote this initially in typescript with bun but the bootup for the command was slow at times in my machine so I decided to move it to C.
To build the project you need libcurl installed and a C compiler (what a surprise).
First you initialize nob and then you call it as follows:
$ cc -o nob nob.c
$ ./nob run -- -hTo use the program you must provide a name for the project's directory name. If a name is provided it must be an unexisting folder.
$ nobinit my-project
$ cd my-project
$ cc -o nob nob.c
$ ./nobYou got 3 options you can set when initializing a project.
c <compiler-name>: Provide a specific c compiler to use for initializing the build systemt <template-name>: Set the template to use for initializing the project. You can see the template options from the help menu from the-hflag-local: Initializes project with local copy of nob.h, evading the need to curl for latest nob.h from github
If you are migrating an existing system into nob you can provide '.' instead of a name and it will generate the nob.c and nob.h files in the current directory. The project name will be taken from the current folder's name.
PRs with no issue to reference will be rejected. Start an issue for a change you want or see if it already exists. Reviewing of changes may take between days to months.