MCPcopy Create free account
hub / github.com/wavetermdev/waveterm / debugBlockIdsRun

Function debugBlockIdsRun

cmd/wsh/cmd/wshcmd-debug.go:45–60  ·  view source on GitHub ↗
(cmd *cobra.Command, args []string)

Source from the content-addressed store, hash-verified

43}
44
45func debugBlockIdsRun(cmd *cobra.Command, args []string) error {
46 oref, err := resolveBlockArg()
47 if err != nil {
48 return err
49 }
50 blockInfo, err := wshclient.BlockInfoCommand(RpcClient, oref.OID, nil)
51 if err != nil {
52 return err
53 }
54 barr, err := json.MarshalIndent(blockInfo, "", " ")
55 if err != nil {
56 return err
57 }
58 WriteStdout("%s\n", string(barr))
59 return nil
60}

Callers

nothing calls this directly

Calls 3

BlockInfoCommandFunction · 0.92
resolveBlockArgFunction · 0.85
WriteStdoutFunction · 0.85

Tested by

no test coverage detected