feat: update default presets
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user