cli/docs
Mislav Marohnić d43720620e Tweak build scripts to enable cross-compiling
The main build script for this project is `script/build.go` which
implements Makefile-like building of the `gh` binary and associated man
pages. Our Makefile defers to the Go script.

However, when setting GOOS, GOARCH, and other environment variables to
modify the target for the resulting binary, these environment variables
would affect the execution of `build.go` as well, which was unintended.

This tweaks our Makefile to reset variables like GOOS and GOARCH when
building the `build.go` script itself, ensuring that the built script
runs on the same platform, and adds the ability to pass environment
variables as arguments to `go run script/build.go`. This allows the
following usage on platforms without `make`:

    go run script/build.go GOOS=linux

With this style of invocation, the GOOS setting does not actually affect
`go run` itself; just the `go build` that is executed in a child process.
2021-04-09 15:48:12 +02:00
..
command-line-syntax.md Fix typos 2020-10-04 22:16:30 +03:00
gh-vs-hub.md Update comparison with hub as of 1.0 2020-09-17 06:56:48 -06:00
install_linux.md Tweak language 2021-03-02 15:05:16 +01:00
README.md Add README to docs folder 2020-03-10 13:22:39 -06:00
releasing.md Small releasing docs cleanup 2020-10-28 11:20:45 +03:00
source.md Tweak build scripts to enable cross-compiling 2021-04-09 15:48:12 +02:00
triage.md Update triage.md 2020-10-28 10:43:55 -05:00

This folder is used for documentation related to developing gh. Docs for gh installation and usage are available at https://cli.github.com/manual.