Newt Manager (newtmgr) is the application tool that enables a user to communicate with and manage remote devices running the Mynewt OS. It uses a connection profile to establish a connection with a device and sends command requests to the device. Thew newtmgr tool is documented at http://mynewt.apache.org/latest/newtmgr/overview/
newtmgr is vendored using the godep tool (https://github.com/tools/godep). Some dependencies are intentially excluded from the vendor directory. The reason these are not vendored is to prevent errors during elicited by go get mynewt.apache.org/newtmgr/...
on linux. These two dependencies contain OS-specific code, something go get
seems to trip over when it is vendored.
To build newtmgr from source, you will need to manually acquire the missing dependencies. OS-specific instructions are below:
apache-mynewt-newtmgr-1.1.0
directory to $GOPATH/src/mynewt.apache.org/newtmgr
cd $GOPATH/src/mynewt.apache.org/newtmgr/newtmgr
go get github.com/currantlabs/ble github.com/mgutz/logxi/v1 golang.org/x/sys/unix
go build
apache-mynewt-newtmgr-1.1.0
directory to $GOPATH/src/mynewt.apache.org/newtmgr
cd $GOPATH/src/mynewt.apache.org/newtmgr/newtmgr
go get github.com/currantlabs/ble github.com/mgutz/logxi/v1 github.com/raff/goble/xpc
go build