feat: update default presets

This commit is contained in:
2026-09-15 17:21:23 +03:00
parent 06c3bc4e18
commit 5cf71fcae1
10 changed files with 58 additions and 18 deletions
+4 -4
View File
@@ -85,20 +85,20 @@ class Entry:
for command in task.commands:
self._logger.debug(" %s", command)
def run_task(self, key: PartialTaskKey) -> bool:
def run_task(self, key: PartialTaskKey) -> int:
if key.name == "show":
self.show()
return True
runned = False
c = 0
for task in self._tasks:
if key == task.key:
self._logger.info("🔵 %s %s", task.key, self)
runned = True
for command in task.commands:
CommandExecutor(command).run(
(task.cwd and Path(task.cwd)) or self._basepath
)
return runned
c += 1
return c
def __repr__(self):
path = self._basepath.relative_to(self._roopath.parent)