MCPcopy
hub / github.com/wavetermdev/waveterm / isFullORef

Function isFullORef

cmd/wsh/cmd/wshcmd-root.go:181–184  ·  view source on GitHub ↗
(orefStr string)

Source from the content-addressed store, hash-verified

179}
180
181func isFullORef(orefStr string) bool {
182 _, err := waveobj.ParseORef(orefStr)
183 return err == nil
184}
185
186func resolveSimpleId(id string) (*waveobj.ORef, error) {
187 if isFullORef(id) {

Callers 1

resolveSimpleIdFunction · 0.85

Calls 1

ParseORefFunction · 0.92

Tested by

no test coverage detected