torsh
is a simple interactive shell for tor control protocol.
Type your commands and get responses.
Also you can just execute single command by just typing it after binary name:
$ torsh getinfo ns/all
Consult tor control spec [https://gitweb.torproject.org/torspec.git/tree/control-spec.txt] for all available commands.
go get github.com/nogoegst/torsh