文本模式目录树查看器

treeless的Python项目详细描述


文本模式目录树查看器。

名称由目录树中的tree和文本查看器中的less组成 由treless使用以显示其输出。

位置

奶酪店(PYPI)提供无树包装。 在https://pypi.python.org/pypi/treeless

project page托管在github上。

如果您从未使用过git或参与过github上的项目, 有一个quick start guide

如果你发现了什么问题或者知道一个缺失的功能,请 create an issue关于项目 第页。如果你觉得不方便或者有安全问题,你可以 同时在<;devel@beli.sk>;处给我一行。

安装

pip install treeless

使用

usage: treeless [-h] [--filematch REGEXP] [--dirmatch REGEXP]
                [--fileignore REGEXP] [--dirignore REGEXP] [--indent N]
                [--indent-char CH] [--plain] [--cut] [--version]
                [path]

Treeless - Text mode directory tree viewer

positional arguments:
  path                  Base path to start listing from

optional arguments:
  -h, --help            show this help message and exit
  --filematch REGEXP, -f REGEXP
                        Files regexp
  --dirmatch REGEXP, -d REGEXP
                        Directories regexp
  --fileignore REGEXP, -F REGEXP
                        Regexp for ignored files
  --dirignore REGEXP, -D REGEXP
                        Regexp for ignored directories
  --indent N, -i N      Indent length (1-8, default=1)
  --indent-char CH, -C CH
                        Indent character (default=.)
  --plain, -p           Plain output on stdout, no less
  --cut, -c             Cut off long lines to fit terminal width
  --version, -v         Show version and exit

配置

treless以ini格式读取配置文件。与上相同的选项 文件中应包含命令行。从下面读取文件 位置,后者将覆盖以前文件和命令行中的选项 选项覆盖配置文件中的选项。

  • /etc/treeless.conf
  • ~/.config/treeless.conf
  • ~/.treeless.conf

配置文件示例(此处显示的值不是默认值):

[treeless]
# include files matching regular expression
filematch = .*
# include directories matching regexp
dirmatch = .*
# ignore files matching regexp
fileignore = ^\.
# ignore directories matching regexp
dirignore = ^\.git$|^\.svn$
# Note: a file or directory has to match the positive filter and not match
#       the negative filter at the same time to be included in output
# length of indent
indent = 2
# plain output on stdout, no less; allowed "ON" values are ``1, yes, true, on``
# and "OFF" values ``0, no, false, off`` (case insensitive)
plain = yes
# cut off long lines to fit terminal width (accepts same values as *plain*)
cut = false

[treeless]节标题是必需的。

许可证

版权所有2013 Michal Belica<;devel@beli.sk>;

Treeless is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Treeless is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Treeless.  If not, see < http://www.gnu.org/licenses/ >.

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

推荐PyPI第三方库


热门话题
java在搜索二进制搜索树时遇到问题   当try block中的多行抛出异常时,java使用TryWithResources而不是finally block   java什么时候需要动态多态性(与静态多态性相比)?   从对象类型的角度来看,java的子类是否与racine类等价?   JavaSpring数据JDBConetomany关系会导致大量日志警告   Java:无法更改响应标头中的“ContentDisposition”属性   Java:我可以直接初始化函数而不将其转换为变量吗?   java do,而游标仅从数组返回3个值   java StoredProcedureQuery多输出类型   java ForLoops最大和最小数   如何在java中的任何机器上读取文本文件   java从嵌套标记中获取XML字符串中包含的值   java如何解决Spring批处理作业运行期间的连接重置异常?   我在运行时创建的java Swing组件没有显示在JPanel中   Apache Jena:Error:“java.lang.NoClassDefFoundError:org/Apache/Jena/riot/RDFDataMgr”   java访问嵌套接口数据变量   java如果CopyOnWriteArrayList中的项目被不同的线程更新和读取,我需要同步它们吗?   在Java数组中不断迭代   java组织。贾维斯。常见的例外JaversException:NOT_INSTANCE_OF:无法为EntityType创建InstanceId