diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ipm/__main__.py | 9 |
1 files changed, 9 insertions, 0 deletions
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 @@ -9,6 +9,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 包的统一资源标识符"), index: str = typer.Option(None, help="世界树服务器地址"), |
