Add del alias for rm helper command

This commit is contained in:
Joe Tretter
2026-05-05 20:12:08 -05:00
parent b8c4096123
commit 5c7c7ad29d
4 changed files with 20 additions and 7 deletions

View File

@@ -97,4 +97,17 @@ class GitSandboxEngineTest {
assertTrue(output.isEmpty())
assertEquals("src", updatedRepo.currentDir)
}
@Test
fun delIsAcceptedAsRmAlias() {
val repo = RepoState(
initialized = true,
files = listOf(GitFile("deleteme.txt")),
)
val (updatedRepo, output) = GitSandboxEngine.execute(repo, "del deleteme.txt")
assertTrue(output.isEmpty())
assertFalse(updatedRepo.files.any { it.name == "deleteme.txt" })
}
}