Crates.io | npi |
lib.rs | npi |
version | 0.2.0 |
source | src |
created_at | 2022-09-12 19:42:29.502901 |
updated_at | 2022-11-25 12:08:22.236073 |
description | Cli tool to init projects with custom file structure |
homepage | |
repository | |
max_upload_size | |
id | 663973 |
size | 16,847 |
Cli tool to init projects with custom file structure.
Installing
$ cargo install npi
USAGE:
npi [OPTIONS] [SUBCOMMAND]
OPTIONS:
-h, --help Print help information
-v, --verbose Display every step
-V, --version Print version information
SUBCOMMANDS:
help Print this message or the help of the given subcommand(s)
new Create new directory with a name
Examples
$ cat ~/.config/npi/c.fsn
[Makefile]
output := {{name}}
default: build
build: clean
gcc -Wall -g main.c -o ${output}
clean:
rm -f ${output}
run: build
./${output}
[EOF]
[main.c]
#include <stdio.h>
int main(void){
printf("Wait... This is not Rust...\n");
return 0;
}
[EOF]
$ npi new hello_world c
Creating project "hello_world" of type "c"
$ cd hello_world/
$ make run
rm -f hello_world
gcc -Wall -g main.c -o hello_world
./hello_world
Wait... This is not Rust...