File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 99from click import Command , Option
1010from yaspin import yaspin # type: ignore
1111
12- from ..core .copy_files import *
12+ from ..core .copy_files import copy_files # type: ignore
1313from ..core .manage_json import read_json , write_json
1414from ..core .manage_templates import template_to_file
1515from ..utils .cli import clear , confirm
Original file line number Diff line number Diff line change 11from __future__ import annotations
22
3- from pathlib import Path # type: ignore
3+ from pathlib import Path
4+ from shutil import copyfile
5+
6+
7+ def copy_files (path : Path , services : list [str ]) -> None :
8+ for service in services :
9+ copyfile (Path (), path .joinpath (f"servers/{ service } " )) # Dockerfile
10+ copyfile (Path (), path .joinpath (f"servers/{ service } " )) # .dockerignore
11+ copyfile (Path (), path .joinpath (f"servers/{ service } " )) # run.sh
12+ copyfile (Path (), path ) # README.md
You can’t perform that action at this time.
0 commit comments