4个版本 (2个重大更改)
0.3.0 | 2023年10月3日 |
---|---|
0.2.1 | 2022年2月11日 |
0.2.0 | 2022年2月11日 |
0.1.0 | 2021年10月21日 |
#4 在 #maven
每月34次下载
用于 maven_search_cmdline
8KB
191 行
maven_search_rs
命令行应用程序,用于在https://search.maven.org进行搜索
用法
非交互式
$ maven-search -f maven wicket-core
上述命令将搜索具有id wicket-core
的Maven组件的最新版本。示例输出
<dependency>
<groupId>org.apache.wicket</groupId>
<artifactId>wicket-core</artifactId>
<version>9.8.0</version>
</dependency>
帮助
$ maven-search -h
打印
maven-search [options] query
Search for Maven dependency
Positionals:
query The dependency you search for. E.g. "wicket-core" or "g:org.apache.wicket AND a:wicket-core" [string]
The syntax is the same as at https://search.maven.org/
Options:
--version Show version number and exit
--format, -f [string] Define in which format to print dependency. (maven, gradle, gradlekts, lein, ivy, sbt). Default: "maven"
--check-for-update, -u Checks whether there is a new version of this tool available and exit
--help, -h Show this help and exit
交互式
$ maven-search
启动一个交互式会话,用户需要输入查询并选择输出格式。
依赖项
~2.5–3.5MB
~97K SLoC