MCPcopy Create free account
hub / github.com/CovenantSQL/CovenantSQL / init

Function init

cmd/cql/internal/rpc.go:76–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74}
75
76func init() {
77 CmdRPC.Run = runRPC
78
79 addCommonFlags(CmdRPC)
80 addConfigFlag(CmdRPC)
81 addWaitFlag(CmdRPC)
82
83 CmdRPC.Flag.StringVar(&rpcName, "name", "", "RPC name to do test call")
84 CmdRPC.Flag.StringVar(&rpcEndpoint, "endpoint", "", "RPC endpoint Node ID to do test call")
85 CmdRPC.Flag.BoolVar(&callBP, "bp", false, "Call block producer node")
86 CmdRPC.Flag.StringVar(&rpcReq, "req", "", "RPC request to do test call, in json format")
87}
88
89func runRPC(cmd *Command, args []string) {
90 commonFlagsInit(cmd)

Callers

nothing calls this directly

Calls 3

addCommonFlagsFunction · 0.85
addConfigFlagFunction · 0.85
addWaitFlagFunction · 0.85

Tested by

no test coverage detected