【文件属性】:
文件名称:hr:用户入职
文件大小:10KB
文件格式:ZIP
更新时间:2021-02-20 11:01:15
Python
小时
用于在Linux服务器上添加/更新用户帐户的CLI
为发展做准备
确保已安装pip和pipenv
克隆存储库: https://github.com/MacOG/hr.git : https://github.com/MacOG/hr.git
cd到库
获取开发依赖项make install
激活virtualenv: pipenv shell
用法
传递用户的json文件
例子:
$ hr /path/to/inventory.json
--export的示例:
$ hr --export /path/to/inventory.json
运行测试
如果virtualenv处于活动状态,请使用make在本地运行测试:
$ make
如果virtualenv未处于活动状态,则使用:
$ pipenv run make
【文件预览】:
hr-master
----setup.py(550B)
----.gitignore(2KB)
----Makefile(120B)
----src()
--------hr()
----MANIFEST.in(48B)
----Pipfile.lock(3KB)
----README.rst(668B)
----tests()
--------hr()
--------inventory.json(522B)
----inventory2.json(368B)
----Pipfile(169B)