MCPcopy Index your code
hub / github.com/cli/cli / writeSkill

Function writeSkill

pkg/cmd/skills/list/list_test.go:508–513  ·  view source on GitHub ↗
(t *testing.T, baseDir, relDir, content string)

Source from the content-addressed store, hash-verified

506}
507
508func writeSkill(t *testing.T, baseDir, relDir, content string) {
509 t.Helper()
510 skillDir := filepath.Join(baseDir, filepath.FromSlash(relDir))
511 require.NoError(t, os.MkdirAll(skillDir, 0o755))
512 require.NoError(t, os.WriteFile(filepath.Join(skillDir, "SKILL.md"), []byte(content), 0o644))
513}
514
515func remoteSkillFrontmatter(name, sourcePath, ref, pinned string) string {
516 return remoteSkillFrontmatterForRepo(name, "https://github.com/monalisa/skills-repo", sourcePath, ref, pinned)

Callers 1

TestListRunFunction · 0.70

Calls 2

JoinMethod · 0.80
HelperMethod · 0.65

Tested by

no test coverage detected