-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
28 lines (23 loc) · 921 Bytes
/
Copy pathmain.py
File metadata and controls
28 lines (23 loc) · 921 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import yaml
import os
from project_forge.handlers.file_handler import FileHandler
from project_forge.constants.defaults import (
DEFAULT_FILE_CATEGORIES,
DEFAULT_IGNORE_PATTERNS,
DEFAULT_NAMING_PATTERNS
)
from project_forge.core.project_manager import ProjectManager
def load_config(config_path):
with open(config_path, 'r') as file:
return yaml.safe_load(file)
def main():
# Set default base path
default_base_path = os.path.join(os.path.expanduser("~"), "Desktop", "Projects")
# Initialize project manager with test mode to avoid path issues
project_manager = ProjectManager('project_config.yaml', test_mode=True)
# Example: Create a new project
project_name = "example_project"
project_path = project_manager.create_project(project_name)
print(f"Created project at: {project_path}")
if __name__ == "__main__":
main()