github.com/turingchain2020/turingchain@v1.1.21/cmd/cli/cli.go (about)

     1  // Copyright Turing Corp. 2018 All Rights Reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // Package main turingchain-cli程序入口
     6  package main
     7  
     8  import (
     9  
    10  	// 这一步是必需的,目的时让插件源码有机会进行匿名注册
    11  	"github.com/turingchain2020/turingchain/cmd/cli/buildflags"
    12  	_ "github.com/turingchain2020/turingchain/system"
    13  	"github.com/turingchain2020/turingchain/util/cli"
    14  )
    15  
    16  func main() {
    17  	if buildflags.RPCAddr == "" {
    18  		buildflags.RPCAddr = "http://localhost:9671"
    19  	}
    20  	cli.Run(buildflags.RPCAddr, buildflags.ParaName, "")
    21  }