From f1626adff30d4232dc8ff9710190f1e83f4455c6 Mon Sep 17 00:00:00 2001 From: 苏向夜 Date: Tue, 23 Jan 2024 16:04:10 +0800 Subject: :sparkles: feat(cli): add check command --- src/ipm/__main__.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') diff --git a/src/ipm/__main__.py b/src/ipm/__main__.py index 855b5e7..ca57001 100644 --- a/src/ipm/__main__.py +++ b/src/ipm/__main__.py @@ -8,6 +8,15 @@ main = typer.Typer( ) +@main.command() +def check(): + """分析 Infini 项目并创建项目锁""" + try: + api.check(".") + except IpmException as error: + logger.error(error) + + @main.command() def install( uri: str = typer.Argument(help="Infini 包的统一资源标识符"), -- cgit v1.2.3-70-g09d2