git用户的琐碎演示任务。
flowtool-githooks-demo的Python项目详细描述
[![pypi python版本](https://img.shields.io/pypi/pyversions/flowtool-githooks-demo.svg)](https://pypi.python.org/pypi/flowtool-githooks-demo) [![pypi最新版本](https://img.shields.io/pypi/v/flowtool-githooks-demo.svg)](https://pypi.python.org/pypi/flowtool-githooks-demo) [![pypi分布格式](https://img.shields.io/pypi/format/flowtool-githooks-demo.svg)](https://pypi.python.org/pypi/flowtool-githooks-demo)
#flowtool githooks演示
这个包包含一些示例git钩子。
通过控制台脚本入口点使钩子可运行。 通过入口点,flowtool githhooks管理也可以识别这些钩子。 这就意味着对于这个工具的用户来说,钩子将显示在 ft githooks脚本菜单自动运行,也可以通过它们的名称从 命令行
##设置设置
`shell $ pip install flowtool-githooks-demo ` 然后,您可以使用以下命令安装挂钩运行器并设置演示挂钩:
`shell $ flowtool githooks-install $ flowtool githooks-scripts--hookpre-commit--add _flowtool_githooks.demo $ flowtool githooks-scripts--hookcommit-msg--add _flowtool_githooks.demo $ flowtool githooks-scripts--hookpre-push--add _flowtool_githooks.demo `
以交互方式配置挂钩:
`shell $ flowtool githooks-scripts--help $ flowtool githooks-scripts `
要统一安装挂钩,请使用:
`shell $ flowtool githooks-scripts--hookpre-commit--remove _flowtool_githooks.demo $ flowtool githooks-wipe `
##flowtool_githooks.demo
一个git钩子来展示git钩子的可能性。 它打印它的(命令行)参数和各种信息 可能有人感兴趣,也可能没有人感兴趣 为了他自己的目的。
作为一个主要特性,它读取标准输入无阻塞 如果有什么输出,因为只有一些钩子 通过stdin传递的附加信息。
##flowtool_githooks.demo_失败
一个永远失败的钩子。
测试某些钩子的非零退出状态会有什么好处。
##flowtool_githhooks.shellcheck
向一组git钩子迈出的一步,这些钩子可以包装代码检查程序。 这个包裹着[shellcheck](https://github.com/koalaman/shellcheck), shell脚本语法、样式和安全检查程序。
##flowtool_githooks.yamllint
向收集有用的git钩子又迈进了一步。 这一个包着[山药](https://github.com/adrienverge/yamllint),山药皮绒。
##flowtool_githhooks.markdownlint
向收集有用的git钩子又迈进了一步。 这一个包装了[pymarkdownlint](https://github.com/jorisroovers/pymarkdownlint),一个标记绒。