mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Reorganize output writing
This commit is contained in:
parent
1adfa24124
commit
0dda19f691
20 changed files with 202 additions and 142 deletions
|
|
@ -6,6 +6,7 @@ import os.path
|
|||
import tarfile
|
||||
|
||||
from pre_commit import five
|
||||
from pre_commit import output
|
||||
from pre_commit.util import cmd_output
|
||||
from pre_commit.util import cwd
|
||||
from pre_commit.util import rmtree
|
||||
|
|
@ -61,7 +62,9 @@ def make_archive(name, repo, ref, destdir):
|
|||
|
||||
def main():
|
||||
for archive_name, repo, ref in REPOS:
|
||||
print('Making {}.tar.gz for {}@{}'.format(archive_name, repo, ref))
|
||||
output.write_line('Making {}.tar.gz for {}@{}'.format(
|
||||
archive_name, repo, ref,
|
||||
))
|
||||
make_archive(archive_name, repo, ref, RESOURCES_DIR)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue