MCPcopy Create free account
hub / github.com/hyperledger/fabric / attachFlags

Function attachFlags

internal/peer/lifecycle/chaincode/chaincode.go:127–136  ·  view source on GitHub ↗
(cmd *cobra.Command, names []string)

Source from the content-addressed store, hash-verified

125}
126
127func attachFlags(cmd *cobra.Command, names []string) {
128 cmdFlags := cmd.Flags()
129 for _, name := range names {
130 if flag := flags.Lookup(name); flag != nil {
131 cmdFlags.AddFlag(flag)
132 } else {
133 logger.Fatalf("Could not find flag '%s' to attach to command '%s'", name, cmd.Name())
134 }
135 }
136}

Callers 10

PackageCmdFunction · 0.70
CalculatePackageIDCmdFunction · 0.70
QueryCommittedCmdFunction · 0.70
GetInstalledPackageCmdFunction · 0.70
QueryInstalledCmdFunction · 0.70
QueryApprovedCmdFunction · 0.70
CheckCommitReadinessCmdFunction · 0.70
InstallCmdFunction · 0.70
CommitCmdFunction · 0.70
ApproveForMyOrgCmdFunction · 0.70

Calls 3

FatalfMethod · 0.80
LookupMethod · 0.65
NameMethod · 0.65

Tested by

no test coverage detected