Allow deleting snips (including git repo)

This commit is contained in:
Tim
2023-04-06 20:46:30 +02:00
parent 004044022d
commit df708aa931
5 changed files with 69 additions and 1 deletions

View File

@ -51,4 +51,9 @@ class SnipService
{
return $this->repo;
}
public function deleteRepo(): void
{
system("rm -rf ".escapeshellarg($this->repo->getRepositoryPath()));
}
}