Add helper script to create new Nim projects Signed-off-by: Anirudh <icyph0x@pm.me>
Anirudh icyph0x@pm.me
Sun, 11 Nov 2018 12:31:30 +0530
1 files changed,
20 insertions(+),
0 deletions(-)
jump to
A
bin/nim-proj
@@ -0,0 +1,20 @@
+#!/usr/bin/env bash + +# nim-proj.sh: initializes + +help() { + echo "Usage:" + echo "nim-proj <name> <description>" +} + +if [ $# -eq 2 ]; then + nimble init $1 + cd $1 + cat <<- EOF > readme.md + # $1 + > $2 + EOF + git init +else + help +fi