gitignore.io的cli

giig的Python项目详细描述


gitignore

基于gitignore.io

安装

# pip3 install giig

用法

usage: giig [-h] [--list] [--search SEARCH] [--file [FILE]] [lang [lang ...]]

Download .gitignore files from gitignore.io

positional arguments:
  lang                  language, IDE or OS to include in the .gitignore file

optional arguments:
  -h, --help            show this help message and exit
  --list, -l            list all language, IDE or OS options
  --search SEARCH, -s SEARCH
                        search list of options and print matches
  --file [FILE], -f [FILE]
                        specify which file to write to

打印列表

打印gitignore.io所有可能选项的列表

giig -l

搜索

搜索特定术语(例如python)

giig -s python

打印到标准输出

giig python

write.gitignore文件

giig -f -- python

使用自定义文件
giig -f custom-file.txt python

用作库

importgiig# get list of languages, IDEs, etc.giig.get_list()# get list of languages, IDEs, etc.giig.search(term)# get gitignore for one/several languages, IDEs, etc.# where options is a list of termsgiig.get_ignore(options)

待办事项

  • [X]将giig打印到stdout而不使用-f
  • []添加缓存(不需要每次都查询gitignore.io)

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

推荐PyPI第三方库


热门话题
要应用于列表的java JSTL if条件   追加文件会导致覆盖(Java)   当我使用自定义适配器和json时,java应用程序崩溃   如何在java中提取数字和字符串   Web视图中的java上传文件   安卓错误:org。json。JSONEXception:java类型的值访问。无法将lang.String转换为JSONObject   javascript如何使用appium驱动程序按id滚动到元素   用Java计算Excel列中的重复行数   垃圾收集为什么Java堆的最大大小是固定的?   java执行maven插件的目标取决于另一个插件正在执行的目标   java无法在tomcat中加载静态文件   稍后访问时,java servlet页面显示为空   JavaWebSphereApplicationServer:EJB模块和JMS路由器   Oracle:如何查看JavaEE6应用程序运行的查询?