Skip to content

Commit 03d49fa

Browse files
Update README.md
1 parent 4464279 commit 03d49fa

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,36 @@ Now, you can create a new project with a simple command:
130130
```bash
131131
larament basecamp
132132
```
133+
134+
#### Herd
135+
136+
Alternatively, you can add a function instead
137+
138+
```bash
139+
function larament() {
140+
local cmd="$1"
141+
shift
142+
143+
case "$cmd" in
144+
new)
145+
if [[ -z "$1" ]]; then
146+
return 1
147+
fi
148+
149+
local project_name="$1"
150+
composer create-project --prefer-dist CodeWithDennis/larament "$project_name" || return 1
151+
cd "$project_name" || return 1
152+
herd link && herd secure && herd open
153+
;;
154+
*)
155+
return 1
156+
;;
157+
esac
158+
}
159+
```
160+
161+
You can now create a new project with a single command — it links, secures, and opens (with Herd) the project in your browser automatically.
162+
163+
```bash
164+
larament new acme
165+
```

0 commit comments

Comments
 (0)