Compiling fyde-cli from source is recommended only if you intend to make changes to its source code. Otherwise, we recommend installing fyde-cli via Homebrew or from the packages available on the releases page.
fyde-cli uses the modules support introduced in Go 1.11, which means you are not forced to place the code in a specific path under GOPATH. You can clone the repository into any folder:
git clone https://github.com/fyde/fyde-cli.git cd fyde-cli
You can also clone the repo into the usual
$GOPATH/src/github.com/fyde/fyde-cli path, but keep in mind that the project will not compile until the next step is complete (i.e.
go get github.com/fyde/fyde-cli will always fail).
After installing go-swagger, run the following command on the root of this repo:
swagger generate client -f swagger.yml
This will generate the
models packages. The code in the
cmd package depends on these.
go build. Because we are using Go modules, Go will take care of downloading the correct versions of the dependencies.
You should now have a
fyde-cli executable. You can
go install the package, if you wish, which will place the binary in