Closed joeblew99 closed 7 years ago
To use the cli with go run
, the command is:
go run cmd/cli/*.go
If you want to build it, you can either put the binary alongside the data
folder, or use an absolute path in the configuration.
Concerning the timeout, it might be because you have the web server running as well. Because bolt puts a lock on the file, you cannot open it with 2 programs at once.
thanks. yep silly mistake with locks.
the addresss is using is "data/papernet.db"
Also i cant go run main.go in the cli folder, because of the way you setup the cobra cmd stack. Its not a killer, but it does make it a bit tougher to iterate. Might be worth setting up a makeFile in the root that runs the standard developer things. like building the CLi and copy it to the root directory so its can find the DB path etc.