return GitWorker(repo_path, ["git", "push", "origin", "production"], parent)
@staticmethod
- def remove_article(repo_path: Path, rel_path: str, slug: str, lang: str, parent=None) -> "GitWorker":
+ def remove_article(repo_path: Path, rel_path: str, slug: str, lang: str, parent=None) -> QThread:
class _RmWorker(QThread):
output = pyqtSignal(str)
error = pyqtSignal(str)
self._process.readyReadStandardOutput.connect(self._on_stdout)
self._process.readyReadStandardError.connect(self._on_stderr)
self._process.finished.connect(self._on_finished)
+ self._process.started.connect(self.started)
@property
def is_running(self) -> bool:
return
self._process.setWorkingDirectory(str(self._repo_path))
self._process.start("hugo", ["server", "-D"])
- self.started.emit()
def stop(self):
if self.is_running: