MCPcopy
hub / github.com/cli/cli / HasTemplates

Method HasTemplates

pkg/cmd/pr/shared/templates.go:170–175  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

168}
169
170func (m *templateManager) HasTemplates() (bool, error) {
171 if err := m.memoizedFetch(); err != nil {
172 return false, err
173 }
174 return len(m.templates) > 0, nil
175}
176
177func (m *templateManager) LegacyBody() []byte {
178 if m.legacyTemplate == nil {

Callers 3

createRunFunction · 0.80

Calls 1

memoizedFetchMethod · 0.95

Tested by 2