feat: add docker preset

This commit is contained in:
2026-08-01 21:06:30 +03:00
parent 9a9338cfdc
commit 48f8b2d5a9
13 changed files with 80 additions and 31 deletions
+2 -2
View File
@@ -31,13 +31,13 @@ class PresetResolver:
if self._config.default:
yield from (Path(__file__).parent / "default").iterdir()
if self._config.user:
user_preset = Path.home() / ".preset.toml"
user_preset = Path.home() / ".pm.toml"
if user_preset.exists():
yield user_preset
if self._config.project:
projectpath = self._basepath
while projectpath.exists():
project_preset = projectpath / ".preset.toml"
project_preset = projectpath / ".pm.toml"
if project_preset.exists():
yield project_preset
if projectpath.parent == projectpath: