cli/pkg/cmd/skills
Copilot 5ae5d1db7f refactor: replace real git with run.CommandStubber in publish tests
Replace all exec.Command("git", ...), initGitRepo, runGitInDir, and
newTestGitClientWithUpstream with run.Stub()/run.CommandStubber stubs.

Changes:
- Remove os/exec and strings imports; add fmt, regexp, internal/run
- Add newTestGitClient(), stubGitRemote(), stubEnsurePushed() helpers
- Remove initGitRepo, runGitInDir, newTestGitClientWithUpstream helpers
- Add cmdStubs field to TestPublishRun table struct
- Convert all test cases to use stub-based git interactions
- Use regexp.QuoteMeta for remote name patterns
- Use %[1]s/%[2]s format args in stubGitRemote
- Initialize git.Client with explicit GitPath to avoid real git resolution
- Rewrite TestEnsurePushed with stub-based tests
- Update TestDetectGitHubRemote_UsesDir and TestPublishRun_DirArgUsesTargetRemote

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-16 19:02:53 +02:00
..
install docs(skill): improve help docs 2026-04-16 14:03:54 +01:00
preview docs(skill): improve help docs 2026-04-16 14:03:54 +01:00
publish refactor: replace real git with run.CommandStubber in publish tests 2026-04-16 19:02:53 +02:00
search fix: apply review feedback — nil HttpClient, local dedup type 2026-04-16 18:49:54 +02:00
update docs(skill): improve help docs 2026-04-16 14:03:54 +01:00
skills.go fix skills names in examples 2026-04-16 10:20:24 +01:00