You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -206,7 +206,7 @@ The watch command requires the `entr` and `tput` commands be installed. The for
206
206
207
207
#### modd-watch
208
208
209
-
The [modd-watch](modules/modd-watch) module lets you define "watch rules": file patterns to watch for, combined with commands to run those when files change. Running `dk watch` (or `script/watch` if you create a link for it) will run [modd](https://github.com/cortesi/modd) to watch the files and run commands. (If modd isn't installed, the `watch` command will try to install it to the project `.deps` directory using `go get`.)
209
+
The [modd-watch](modules/modd-watch) module lets you define "watch rules": file patterns to watch for, combined with commands to run those when files change. Running `dk watch` (or `script/watch` if you create a link for it) will run [modd](https://github.com/cortesi/modd) to watch the files and run commands. (If modd isn't installed, the `watch` command will try to install it to the project `.deps` directory using `go install`.)
210
210
211
211
The way you add rules is by calling the `watch` or `watch+` functions from your `.dkrc`. Each of these functions accepts zero or more glob patterns (optionally negated with a leading `!`), followed by `--` and a command to run. If no globs are specified, the command will run once, at the beginning of the watch. (You can also add global exclusion globs with `unwatch`.) Some examples:
212
212
@@ -242,7 +242,7 @@ Finally, note that if your `.dkrc` file is changed during a watch run, the `dk w
242
242
243
243
#### reflex-watch
244
244
245
-
The [reflex-watch](modules/reflex-watch) module is almost identical to modd-watch in function, but using [reflex](https://github.com/cespare/reflex) to watch files and run commands. (If reflex isn't installed, the `watch` command will try to install it to the project `.deps` directory using `go get`.)
245
+
The [reflex-watch](modules/reflex-watch) module is almost identical to modd-watch in function, but using [reflex](https://github.com/cespare/reflex) to watch files and run commands. (If reflex isn't installed, the `watch` command will try to install it to the project `.deps` directory using `go install`.)
246
246
247
247
The key differences are:
248
248
@@ -291,7 +291,7 @@ dk use: golang
291
291
golang 1.11.x # use latest-available golang 1.11
292
292
```
293
293
294
-
And then use `go get` or other go commands as needed. Binaries will be built in `.deps/bin`, and the default `GOROOT` is `.deps/go` (unless you override these settings in `.envrc`).
294
+
And then use `go install` or other go commands as needed. Binaries will be built in `.deps/bin`, and the default `GOROOT` is `.deps/go` (unless you override these settings in `.envrc`).
295
295
296
296
The `dk use: golang` command gives your `.dkrc` access to the following functions:
Copy file name to clipboardexpand all lines: dk.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -177,7 +177,7 @@ github() {
177
177
178
178
### go
179
179
180
-
Some utilities need to be built using `go get`, but go itself may not be present on the target system. We provide a wrapper that requests its installation, for use in commands like `require tool go get github.com/something/tool`.
180
+
Some utilities need to be built using `go install`, but go itself may not be present on the target system. We provide a wrapper that requests its installation, for use in commands like `require tool go install github.com/something/tool`.
181
181
182
182
```shell
183
183
go() { require-any go;unset -f go;command go "$@"; }
0 commit comments