github.com/anjalikarhana/fabric@v2.1.1+incompatible/internal/peer/lifecycle/lifecycle.go (about)

     1  /*
     2  Copyright IBM Corp. All Rights Reserved.
     3  
     4  SPDX-License-Identifier: Apache-2.0
     5  */
     6  
     7  package lifecycle
     8  
     9  import (
    10  	"github.com/hyperledger/fabric/bccsp"
    11  	"github.com/hyperledger/fabric/internal/peer/lifecycle/chaincode"
    12  	"github.com/spf13/cobra"
    13  )
    14  
    15  // Cmd returns the cobra command for lifecycle
    16  func Cmd(cryptoProvider bccsp.BCCSP) *cobra.Command {
    17  	lifecycleCmd := &cobra.Command{
    18  		Use:   "lifecycle",
    19  		Short: "Perform _lifecycle operations",
    20  		Long:  "Perform _lifecycle operations",
    21  	}
    22  	lifecycleCmd.AddCommand(chaincode.Cmd(cryptoProvider))
    23  
    24  	return lifecycleCmd
    25  }