mirror of
https://github.com/jmespath/jp
synced 2025-08-22 09:37:10 +00:00
Merge pull request #43 from brianolson/readme-fix
update `go` and `git` commands
This commit is contained in:
commit
6295f38bc1
@ -29,18 +29,18 @@ For example, to install the latest version on a 64 bit Linux environment use:
|
|||||||
|
|
||||||
```sh
|
```sh
|
||||||
sudo wget https://github.com/jmespath/jp/releases/latest/download/jp-linux-amd64 \
|
sudo wget https://github.com/jmespath/jp/releases/latest/download/jp-linux-amd64 \
|
||||||
-O /usr/local/bin/jp && sudo chmod +x /usr/local/bin/jp
|
-O /usr/local/bin/jp && sudo chmod +x /usr/local/bin/jp
|
||||||
```
|
```
|
||||||
|
|
||||||
## Building from Source
|
## Building from Source
|
||||||
|
|
||||||
If you have a Go environment installed you can also run:
|
If you have a Go environment installed you can also run:
|
||||||
``go get -u github.com/jmespath/jp`` to get the latest version
|
``go install github.com/jmespath/jp@latest`` to get the latest version
|
||||||
of jmespath. If you have the repo checked out locally you can also
|
of jmespath. If you have the repo checked out locally you can also
|
||||||
just ``go build`` the project:
|
just ``go build`` the project:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
git clone git://github.com/jmespath/jp
|
git clone https://github.com/jmespath/jp.git
|
||||||
cd jp
|
cd jp
|
||||||
go build
|
go build
|
||||||
./jp --help
|
./jp --help
|
||||||
@ -52,7 +52,7 @@ have a workspace/GOPATH configured, you can just run
|
|||||||
``jp`` executable for you:
|
``jp`` executable for you:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
git clone git://github.com/jmespath/jp
|
git clone https://github.com/jmespath/jp.git
|
||||||
cd jp
|
cd jp
|
||||||
scripts/build-self-contained
|
scripts/build-self-contained
|
||||||
./jp --help
|
./jp --help
|
||||||
|
Loading…
x
Reference in New Issue
Block a user