cli -> __main__ refactor

This commit is contained in:
Manuel Barkhau 2020-09-06 21:15:27 +00:00
parent 4caece2817
commit 75563672b4
3 changed files with 169 additions and 154 deletions

View file

@ -76,7 +76,7 @@ class Project:
for path_parts in FIXTURE_PATH_PARTS:
maybe_file_path = self.dir.joinpath(*path_parts)
if maybe_file_path.exists():
self.shell(f"{cmd} add {str(maybe_file_path)}")
self.shell(cmd + " add " + str(maybe_file_path))
added_file_paths.append(maybe_file_path)
assert len(added_file_paths) >= 2