mirror of
https://github.com/docker/cli.git
synced 2026-08-24 18:14:17 -05:00
While the "-modfile=vendor.mod" is slightly more correct, using a symlink allows for most of the go tools to work "as usual", just without an acual `go.mod` being committed in the repository. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
12 lines
303 B
Bash
Executable File
12 lines
303 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -eu
|
|
|
|
(
|
|
set -x
|
|
go run -mod=vendor -tags docsgen ./docs/generate/generate.go --formats md --source "./docs/reference/commandline" --target "./docs/reference/commandline"
|
|
)
|
|
|
|
# remove generated help.md file
|
|
rm "$(pwd)/docs/reference/commandline/help.md" >/dev/null 2>&1 || true
|