conan pkglist¶
警告
此功能是实验性的,可能会有重大更改。有关更多信息,请参阅Conan 稳定性章节。
对包列表执行不同的操作
将多个包列表(深度合并)合并为一个:
conan pkglist merge
查找缓存中的包可以在哪些远程仓库中找到:
conan pkglist find-remote
conan pkglist merge¶
$ conan pkglist merge -h
usage: conan pkglist merge [-h] [-f FORMAT] [--out-file OUT_FILE] [-v [V]]
[-cc CORE_CONF] [-l LIST]
(Experimental) Merge several package lists into a single one
options:
-h, --help show this help message and exit
-f FORMAT, --format FORMAT
Select the output format: json, html
--out-file OUT_FILE Write the output of the command to the specified file
instead of stdout.
-v [V] Level of detail of the output. Valid options from less
verbose to more verbose: -vquiet, -verror, -vwarning,
-vnotice, -vstatus, -v or -vverbose, -vv or -vdebug,
-vvv or -vtrace
-cc CORE_CONF, --core-conf CORE_CONF
Define core configuration, overwriting global.conf
values. E.g.: -cc core:non_interactive=True
-l LIST, --list LIST Package list file
conan pkglist merge
命令可以将多个包列表合并为一个
$ conan pkglist merge --list=list1.json --list=list2.json --format=json > result.json
合并将是深度合并,可以添加不同的版本,并且在版本中可以添加多个修订版本,并且对于每个 recipe 修订版本,也可以累积多个 package_id。
conan pkglist find-remote¶
$ conan pkglist find-remote -h
usage: conan pkglist find-remote [-h] [-f FORMAT] [--out-file OUT_FILE]
[-v [V]] [-cc CORE_CONF] [-r REMOTE]
list
(Experimental) Find the remotes of a list of packages in the cache
positional arguments:
list Input package list
options:
-h, --help show this help message and exit
-f FORMAT, --format FORMAT
Select the output format: json, html
--out-file OUT_FILE Write the output of the command to the specified file
instead of stdout.
-v [V] Level of detail of the output. Valid options from less
verbose to more verbose: -vquiet, -verror, -vwarning,
-vnotice, -vstatus, -v or -vverbose, -vv or -vdebug,
-vvv or -vtrace
-cc CORE_CONF, --core-conf CORE_CONF
Define core configuration, overwriting global.conf
values. E.g.: -cc core:non_interactive=True
-r REMOTE, --remote REMOTE
Remote names. Accepts wildcards ('*' means all the
remotes available)
conan pkglist find-remote
命令将获取缓存中包的包列表(键 "Local Cache"
),并在定义的远程仓库中查找它们。对于在远程仓库中完全匹配 recipe、版本、recipe-修订版本等的每个实例,将在结果“包列表”中为该特定远程仓库添加一个条目。