forked from ratatui/templates
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
50 lines (42 loc) · 2.11 KB
/
justfile
File metadata and controls
50 lines (42 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
default:
@just --list
generate-all:
just generate-component
just generate-hello-world
just generate-simple
just generate-simple-async
just generate-event-driven
just generate-event-driven-async
# The purpose of these targets is to make it easy to make changes to the templates and then
# regenerate the generated projects and view the expected changes in a git diff.
generate-component $CARGO_NAME="your name" $CARGO_EMAIL="author@example.com":
rm -rv component-generated
cargo generate --path ./component \
--name component-generated \
--define project-description="An example generated using the component template" \
--define use-gitserver=false
generate-hello-world $CARGO_NAME="your name" $CARGO_EMAIL="author@example.com":
rm -rv hello-world-generated
cargo generate --path ./hello-world \
--name hello-world-generated \
--define project-description="An example generated using the hello-world template"
generate-simple $CARGO_NAME="your name" $CARGO_EMAIL="author@example.com":
rm -rv simple-generated
cargo generate --path ./simple \
--name simple-generated \
--define project-description="An example generated using the simple template"
generate-simple-async $CARGO_NAME="your name" $CARGO_EMAIL="author@example.com":
rm -rv simple-async-generated
cargo generate --path ./simple-async \
--name simple-async-generated \
--define project-description="An example generated using the simple-async template"
generate-event-driven $CARGO_NAME="your name" $CARGO_EMAIL="author@example.com":
rm -rv event-driven-generated
cargo generate --path ./event-driven \
--name event-driven-generated \
--define project-description="An example generated using the event-driven template"
generate-event-driven-async $CARGO_NAME="your name" $CARGO_EMAIL="author@example.com":
rm -rv event-driven-async-generated
cargo generate --path ./event-driven-async \
--name event-driven-async-generated \
--define project-description="An example generated using the event-driven-async template"