dir : cmd/tendermint/main.go
cmd 명령어를 추가하고, node 인스턴스 생성 후 실행
rootCmd := cmd.RootCmd
rootCmd.AddCommand(...)
디폴트 세팅을 한 tendermint node 인스턴스를 생성하는 함수를 가져옴
nodeFunc := nm.DefaultNewNode
// dir : node/node.go
node 생성, 구동
rootCmd.AddCommand(cmd.NewRunNodeCmd(nodeFunc))
cmd := cli.PrepareBaseCmd(rootCmd, "TM", os.ExpandEnv(filepath.Join(...)))
if err := cmd.Execute(); err != nil {
panic(err)
}