MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / resolveBlockArg

Function resolveBlockArg

cmd/wsh/cmd/wshcmd-root.go:115–125  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

113}
114
115func resolveBlockArg() (*waveobj.ORef, error) {
116 oref := blockArg
117 if oref == "" {
118 oref = "this"
119 }
120 fullORef, err := resolveSimpleId(oref)
121 if err != nil {
122 return nil, fmt.Errorf("resolving blockid: %w", err)
123 }
124 return fullORef, nil
125}
126
127func setupRpcClientWithToken(swapTokenStr string) (wshrpc.CommandAuthenticateRtnData, error) {
128 var rtn wshrpc.CommandAuthenticateRtnData

Callers 13

focusBlockRunFunction · 0.85
getMetaRunFunction · 0.85
webGetRunFunction · 0.85
setMetaRunFunction · 0.85
deleteBlockRunFunction · 0.85
debugBlockIdsRunFunction · 0.85
debugTermRunFunction · 0.85
termScrollbackRunFunction · 0.85
getVarRunFunction · 0.85
runReadFileFunction · 0.85
badgeRunFunction · 0.85

Calls 1

resolveSimpleIdFunction · 0.70

Tested by

no test coverage detected