aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/ipm/api.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ipm/api.py b/src/ipm/api.py
index 7e0eda1..513eff9 100644
--- a/src/ipm/api.py
+++ b/src/ipm/api.py
@@ -18,6 +18,12 @@ import toml
import shutil
+def check(source_path: StrPath) -> None:
+ source_path = Path(source_path).resolve()
+ lock = ProjectLock(source_path)
+ lock.init()
+
+
def init(source_path: StrPath, force: bool = False, echo: bool = False) -> None:
source_path = Path(source_path).resolve()
if (toml_path := (source_path / "infini.toml")).exists() and not force: