为你的发展环境补充水分。
hydrator的Python项目详细描述
水合器
从YAML配置文件为您的开发环境添加水分。在
简介
Usage: hydrator [OPTIONS] COMMAND [ARGS]...
Hydrate your development environment.
Without arguments, all hydrators will be run.
Options:
-c, --config path The config file to load. Defaults to "hydrator.yml"
-v, --verbose
--dry Do not commit changes to disk.
--select TEXT Select a subset of hydrators to run (comma separated).
--help Show this message and exit.
Commands:
auth-status Check the filesystem authentication status.
login Authenticate for a filesystem.
logout Revoke existing credentials for a filesystem.
功能
- Bash配置文件和Git配置的YAML配置。在
- 对于多个环境,不要重复YAML配置。在
- 通过访问外部文件系统(例如Nextcloud)执行shell命令。在
路线图
- []应用程序目录查找程序(例如,发现VScode应用程序目录)
示例
在Git存储库中,创建一个名为hydrator.yml
的文件。在该文件中,您可以配置文件
它将由YAML配置或外部源生成。外部资源包括
可在同一文件中配置的“文件系统”。在
为了访问你的Nextcloud文件,hydrotor首先需要进行身份验证。在
$ hydrator login nextcloud
然后你只需运行水合器来执行所有步骤。你可以选择一部分水合剂
使用--select h1,h2,...
选项。添加--dry
以不提交对磁盘的更改,并且
-v,--verbose
或更多日志。在
$ hydrator
分层
可以有多个YAML配置文件,其中一个通过添加或扩展另一个 覆盖键。这对于为其他环境自定义基本配置非常有用。在
extends:./base.ymlhydrators:gpg:'{{exclude}}'gitconfig:Personal.user:'{{user}}'user:email:work@email.comsigningkey:DEADBEEF
- 项目
标签: