Use new PrepareMainCmd from tmlibs/cli

This commit is contained in:
Ethan Frey
2017-05-02 17:18:08 +02:00
parent 197a2b270f
commit 524ba917a3
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -18,10 +18,11 @@ import (
"os"
"github.com/tendermint/go-crypto/cmd"
"github.com/tendermint/tmlibs/cli"
)
func main() {
cmd.PrepareMainCmd(cmd.RootCmd, "TM", os.ExpandEnv("$HOME/.tlc"))
cli.PrepareMainCmd(cmd.RootCmd, "TM", os.ExpandEnv("$HOME/.tlc"))
cmd.RootCmd.Execute()
// exec()
}
Generated
+2 -1
View File
@@ -91,10 +91,11 @@ imports:
subpackages:
- term
- name: github.com/tendermint/tmlibs
version: 1ea866fd691ded9c1de16408934927d133550efc
version: d4ab9679d71c8fc174284696d15930cb799fa24f
subpackages:
- common
- logger
- cli
- name: golang.org/x/crypto
version: 7c6cc321c680f03b9ef0764448e780704f486b51
subpackages: