MCPcopy Index your code
hub / github.com/larksuite/cli / newReader

Function newReader

cmd/skill/skill.go:19–25  ·  view source on GitHub ↗
(f *cmdutil.Factory)

Source from the content-addressed store, hash-verified

17)
18
19func newReader(f *cmdutil.Factory) (*skillcontent.Reader, error) {
20 if f.SkillContent == nil {
21 return nil, errs.NewInternalError(errs.SubtypeFileIO,
22 "skill content not embedded in this build")
23 }
24 return skillcontent.New(f.SkillContent), nil
25}
26
27type readEnvelope struct {
28 Skill string `json:"skill"`

Callers 2

newListCmdFunction · 0.85
newReadCmdFunction · 0.85

Calls 2

NewInternalErrorFunction · 0.92
NewFunction · 0.92

Tested by

no test coverage detected