github.com/ewagmig/fabric@v2.1.1+incompatible/cmd/discover/main.go (about)

     1  /*
     2  Copyright IBM Corp. All Rights Reserved.
     3  
     4  SPDX-License-Identifier: Apache-2.0
     5  */
     6  
     7  package main
     8  
     9  import (
    10  	"os"
    11  
    12  	"github.com/hyperledger/fabric/bccsp/factory"
    13  	"github.com/hyperledger/fabric/cmd/common"
    14  	discovery "github.com/hyperledger/fabric/discovery/cmd"
    15  )
    16  
    17  func main() {
    18  	factory.InitFactories(nil)
    19  	cli := common.NewCLI("discover", "Command line client for fabric discovery service")
    20  	discovery.AddCommands(cli)
    21  	cli.Run(os.Args[1:])
    22  }