diff options
| author | 2024-01-23 16:04:10 +0800 | |
|---|---|---|
| committer | 2024-01-23 16:04:10 +0800 | |
| commit | f1626adff30d4232dc8ff9710190f1e83f4455c6 (patch) | |
| tree | 6e597188c17e0c97b1cdf0f754b127b1d37a696e /src | |
| parent | c344363fa3ad598c9b84dff280137624bbafe781 (diff) | |
| download | ipm-f1626adff30d4232dc8ff9710190f1e83f4455c6.tar.gz ipm-f1626adff30d4232dc8ff9710190f1e83f4455c6.zip | |
:sparkles: feat(cli): add check command
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="世界树服务器地址"), |
