aboutsummaryrefslogtreecommitdiffstats
path: root/Justfile
diff options
context:
space:
mode:
authormsi2025-11-16 12:28:25 -0300
committermsi2025-11-16 12:28:25 -0300
commitcd7cf0434f173b3ac135f2678ab38d1bc82f19c4 (patch)
tree9171ea3384d62217fe29d906b43fca9ba9e693c3 /Justfile
parentc722f8281d0f19080f19928a69de950c1472cf94 (diff)
downloadtemplates-cd7cf0434f173b3ac135f2678ab38d1bc82f19c4.tar.gz
Add lib template
Diffstat (limited to 'Justfile')
-rw-r--r--Justfile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Justfile b/Justfile
index 8e02b11..1f0bdc5 100644
--- a/Justfile
+++ b/Justfile
@@ -3,6 +3,7 @@ default:
generate-all:
just web
+ just lib
web $CARGO_NAME="your name" $CARGO_EMAIL="author@example.com":
rm -rv web-generated
@@ -11,3 +12,10 @@ web $CARGO_NAME="your name" $CARGO_EMAIL="author@example.com":
--define project-description="An example generated using the web template" \
--define use-gitserver=false
+lib $CARGO_NAME="your name" $CARGO_EMAIL="author@example.com":
+ rm -rv lib-generated
+ cargo generate --path ./lib \
+ --name lib-generated \
+ --define project-description="An example generated using the lib template" \
+ --define use-gitserver=false
+