医疗智能体-列举对象:命令示例
命令示例
本节以Windows为例介绍eihealth-toolkit的使用过程,Linux和macOS环境使用方法基本相同,可参考。
假设“lmx-test-01”项目引用了来自“lmx-test-02”项目的数据,使用health switch project lmx-test-01命令进入“lmx-test-01”项目,使用health ls命令列举该项目下的对象。
- 指定“path”参数为根目录,查询根目录下所有对象。
health ls / -r # 返回结果如下 # *表示引用的其他项目中的数据 *lmx-test-02:/test1.txt *lmx-test-02:/test2.txt *lmx-test-02:/src1/ *lmx-test-02:/src1/test1.txt # Folder list为本项目中的数据 Folder list: /src1/ /src2/ File list: key size last_Modified /test1.txt 6.57MB 2020/11/09 10:32:12 /test2.txt 6.57MB 2020/11/09 10:32:12 /test3.txt 6.57MB 2020/11/09 10:32:12 /test4.txt 6.57MB 2020/11/09 10:32:12 /test5.txt 6.57MB 2020/11/09 10:32:12 /test6.txt 6.57MB 2020/11/09 10:32:12 /src1/test7.txt 6.57MB 2020/11/09 10:32:12 /src2/test8.txt 6.57MB 2020/11/09 10:32:12 Total size of current file is: 52.56MB Folder number is: 4 File number is: 8
- 指定“limit”参数,并只列举项目中的3个对象。
health ls --limit 3 # 返回结果如下 Folder list: /src1/ /src2/ File list: key Size LastModified /test1.txt 6.57MB 2020/11/09 10:32:12 Total size of current file is: 6.57MB Folder number is: 2 File number is: 1
- 指定“path”参数,列举某指定路径中的对象。
health ls /src2/ # 列举路径中的文件夹对象时,需使用/xxx/格式 # 返回结果如下 Folder list: /src2/ # 路径中无文件夹时,返回为空 File list: key Size LastModified /src2/test8.txt 6.57MB 2020/11/09 10:32:12 Total size of current file is: 6.57MB Folder number is: 1 File number is: 1
- 指定“simple”参数,以简略格式显示对象。
health ls --simple # 返回结果如下 Folder list: /src1/ /src2/ File list: /test1.txt /test2.txt /test3.txt /test4.txt /test5.txt /test6.txt /src1/test7.txt /src2/test8.txt Total size of current file is: 52.56MB Folder number is: 2 File number is: 8
- 指定引用项目。
health ls lmx-test-02:/src1/ --simple Start at 2022-08-23 08:28:43.3699574 +0000 UTC Listing objects . Folder list: Object list: /src1/test1.txt