在子目录中运行命令的命令行应用程序。

sub-do的Python项目详细描述


子do

PyPIUpdates

在子目录中运行命令的命令行应用程序。

目录

安装

sub do需要python 3.6或更新版本。

pip install --upgrade sub-do

用法

$ sub-do --help
usage: sub-do [-h] [-V] [-d [directory [directory ...]]] commandpositional arguments:  command               command to runoptional arguments:  -h, --help            show this help message and exit  -V, --version         show program's version number and exit  -d [directory [directory ...]], --directory [directory [directory ...]]                        directories to run the command in (default: all subdirectories except those whose                        names begin with a dot)When using -d, use -- to separate directories from the command or put the command first

在当前目录的所有子目录中运行命令:

$ sub-do 'ls | wc -l'['ls | wc -l' in sub_do/ exited with 0][stdout]       3['ls | wc -l' in dist/ exited with 0][stdout]       2['ls | wc -l' in ci/ exited with 0][stdout]       2['ls | wc -l' in tests/ exited with 0][stdout]       3['ls | wc -l' in sub_do.egg-info/ exited with 0][stdout]       6['ls | wc -l' in docs/ exited with 0][stdout]       2['ls | wc -l' in build/ exited with 0][stdout]       4

最近的更改

change log

开发sub do

安装开发环境和依赖项

运行pip install -r requirements-dev.txt安装开发依赖项。

运行单元测试

运行单元测试并检查其代码覆盖率:

$ ci/unittest.sh
----------------------------------------------------------------------Ran 14 tests in 0.017sOKName    Stmts   Miss Branch BrPart  Cover----------------------------------------------------------------------------------TOTAL     115      0     21      0   100%7 files skipped due to complete coverage.

HTML覆盖率报告将写入build/unittest-coverage/

生成文档

这个README.md文件是用python docs/generate_readme.py生成的。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java希望直接扫描要上传到网页的文档   java JavaFX使对象可见,但不使用(忽略)点击   java LibGdx奇怪的纹理行为   java JavaFx ComboBox在第一次单击时未获得正确的值   api WebDav服务器库最好使用Java   java在Android中维护应用程序状态   java保存在Android中拖放RecyclerView后所做的更改我已经阅读了所有内容   无法读取项目中所需库tomcatembedwebsocket的java存档,或者该存档不是有效的ZIP文件   c#类在系统中有哪些关联?如何在UML中最好地表示它们?   java如何使用bazaar访问两台计算机上的同一文件夹   Java易失性与缓存一致性   java如何解决http11。校长:例外?   java liferaymavenplugin从maven Liferay 6.2.5(6.2 ga6)部署war   安卓的jar for java在哪里。木卫一。文件   java邻接矩阵中BFS的顺序是什么?   虚拟机如何从java启动linux虚拟机?   向DefaultListModel添加元素时java JList未更新   java JMSListener批注无法与REST服务一起使用   java DirectoryStream返回路径的顺序是什么?文件名,上次修改,文件大小?   java DropWizard Hibernate doc想说什么?