extend build instructions

This commit is contained in:
Aidan 2021-05-31 15:36:12 -07:00
parent 47530e330b
commit 5b8716c0c4
No known key found for this signature in database
GPG key ID: 327711E983899316

View file

@ -127,11 +127,14 @@ Any characters after a semicolon will be ignored until end of line. Semicolons f
## How to build ## How to build
### Compiling/Installation ### Compiling/Installation
1. [follow Google's instructions to install Go](https://golang.org/doc/install) 1. [follow Google's instructions to install Go](https://golang.org/doc/install)
- after these instructions you should have $GOPATH set 2. run `$ mkdir -p ~/go`
2. run `$ go get -u gitlab.com/whom/shs` 3. add the following commands to your shell configuration, and run them in your shell
3. change directory to $GOPATH/src/gitlab.com/whom/shs - `export GOPATH $HOME/go`
4. run `$ go install ./cmd/shs.go` - `export PATH $PATH:$GOPATH/bin`
- if you have the Go binary directory in your path you can now call `shs` via the shell 4. run `$ go get -u gitlab.com/whom/shs`
5. change directory to `$GOPATH/src/gitlab.com/whom/shs`
6. run `$ go install ./cmd/shs.go`
7. you can now call `shs` via the shell
### Adding SHS to your application ### Adding SHS to your application
Here are some important tips for integrating an SHS REPL into another codebase. Here are some important tips for integrating an SHS REPL into another codebase.