Microsoft azure cli开发工具
azdev的Python项目详细描述
Microsoft azure cli开发工具(azdev)
azdev工具旨在帮助有经验的新开发人员为azure cli命令模块和扩展做出贡献。
设置开发环境
从http://python.org安装python 3.5+或2.7+。请注意,osx上预装的python版本是2.7。
- 派生并克隆要为其开发的一个或多个存储库。
- 对于azure cli:https://github.com/azure/azure-cli" rel="nofollow">https://github.com/azure/azure cli
- 对于azure cli扩展:https://github.com/azure/azure-cli-extensions" rel="nofollow">https://github.com/azure/azure cli-extensions
- 您可以访问的任何其他包含cli扩展的存储库。
在克隆的根目录中为python创建一个新的虚拟环境。您可以通过运行:
< Buff行情>python 3.5+(所有平台):
python -m venv env
或:
python3 -m venv env
python 2.7+(所有平台):
python -m virtualenv env
通过运行以下命令激活env虚拟环境:
< Buff行情>windows cmd.exe:
env\scripts\activate.bat
Windows Powershell:
env\scripts\activate.ps1
OSX/Linux(bash):
source env/bin/activate
通过运行:
< Buff行情>pip install azdev
通过运行完成设置:
< Buff行情>azdev setup
这将启动交互式安装过程。要查看非交互式选项,请运行 azdev setup-h
许可证
Azure CLI Dev Tools (azdev) Copyright (c) Microsoft Corporation All rights reserved. MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.::