add color
This commit is contained in:
@ -52,7 +52,7 @@ def ensureDirectory(path):
|
|||||||
# MARK: Copy sources
|
# MARK: Copy sources
|
||||||
def copySources(config, destinationDirectory):
|
def copySources(config, destinationDirectory):
|
||||||
"""Copy files and folders according to copy rules."""
|
"""Copy files and folders according to copy rules."""
|
||||||
print("Starting source file & folder copy and replace process...")
|
print(f"{Colors.YELLOW}Starting source file & folder copy and replace process...{Colors.RESET}")
|
||||||
for rule in config.get('copy_rules', []):
|
for rule in config.get('copy_rules', []):
|
||||||
for source in rule.get('sources', []):
|
for source in rule.get('sources', []):
|
||||||
try:
|
try:
|
||||||
@ -148,7 +148,7 @@ def copySources(config, destinationDirectory):
|
|||||||
# MARK: Modify files
|
# MARK: Modify files
|
||||||
def modifyFiles(config, destinationDirectory):
|
def modifyFiles(config, destinationDirectory):
|
||||||
"""Modify files according to modification rules."""
|
"""Modify files according to modification rules."""
|
||||||
print("Starting file modification process...")
|
print(f"{Colors.YELLOW}Starting file modification process...{Colors.RESET}")
|
||||||
for rule in config.get('modification_rules', []):
|
for rule in config.get('modification_rules', []):
|
||||||
filePattern = rule.get('file_pattern', '*')
|
filePattern = rule.get('file_pattern', '*')
|
||||||
print(f"\nProcessing files matching pattern: {filePattern}")
|
print(f"\nProcessing files matching pattern: {filePattern}")
|
||||||
|
Reference in New Issue
Block a user