feat: add docker preset
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user