Add del alias for rm helper command
This commit is contained in:
@@ -104,7 +104,7 @@ object GitSandboxEngine {
|
||||
" mkdir|md <directory>",
|
||||
" cd <directory>",
|
||||
" cd..",
|
||||
" rm <file>",
|
||||
" rm|del <file>",
|
||||
" echo <message>",
|
||||
)
|
||||
|
||||
@@ -119,7 +119,7 @@ object GitSandboxEngine {
|
||||
else repo.copy(files = repo.files + GitFile(name = name)) to emptyList()
|
||||
}
|
||||
(parts[0] == "mkdir" || parts[0] == "md") && parts.size >= 2 -> repo to emptyList()
|
||||
parts[0] == "rm" && parts.size >= 2 -> {
|
||||
(parts[0] == "rm" || parts[0] == "del") && parts.size >= 2 -> {
|
||||
val target = parts[1]
|
||||
repo.copy(files = repo.files.mapNotNull { file ->
|
||||
when {
|
||||
|
||||
Reference in New Issue
Block a user