脚本

vang的Python项目详细描述


脚本

其他脚本

建议使用

  1. 克隆此存储库

  2. 用pip3安装-e。

  3. 添加所需的环境变量,如vang/artifactory/api.py和vang/bitbucket/api.py

  4. 创建一个目录,例如~/bin,并将其添加到您的路径中

  5. 创建符号链接(参见下面的示例)。如果在Windows上,请创建调用脚本的命令文件

  6. 所有python脚本都有帮助,例如

     ~/bin clone-repos -h
     usage: clone-repos [-h]
                        (-p PROJECTS [PROJECTS ...] | -r REPOS [REPOS ...] | -c CONFIG)
                        [-b BRANCH] [-d DIR]
    
     Clone Bitbucket repos
    
     optional arguments:
       -h, --help            show this help message and exit
       -p PROJECTS [PROJECTS ...], --projects PROJECTS [PROJECTS ...]
                             Bitbucket projects, e.g key1 key2
       -r REPOS [REPOS ...], --repos REPOS [REPOS ...]
                             Repos, e.g. key1/repo1 key2/repo2
       -c CONFIG, --config CONFIG
                             Configuration file, see bb_clone_repos.json
       -b BRANCH, --branch BRANCH
                             The clone branch. Overrides branch in configuration
                             file (-c)
       -d DIR, --dir DIR     The directory to clone into
    
  7. 要使用非python脚本,请查看脚本中的文档

符号链接示例

ln -s ~/git/scripts/vang/artifactory/delete.py ~/bin/artifactory-delete
ln -s ~/git/scripts/vang/artifactory/publish.py ~/bin/artifactory-publish
ln -s ~/git/scripts/vang/bitbucket/clone_repos.py ~/bin/clone-repos
ln -s ~/git/scripts/vang/bitbucket/clone_repos_with_commits_since.py ~/bin/clone-repos-with-commits-since
ln -s ~/git/scripts/vang/bitbucket/create_from_template.py ~/bin/create-from-template
ln -s ~/git/scripts/vang/bitbucket/create_repo.py ~/bin/create-repo
ln -s ~/git/scripts/vang/bitbucket/delete_repos.py ~/bin/delete-repos
ln -s ~/git/scripts/vang/bitbucket/enable_webhooks.py ~/bin/enable-webhooks
ln -s ~/git/scripts/vang/bitbucket/fork_repos.py ~/bin/fork-repos
ln -s ~/git/scripts/vang/bitbucket/fork_repos_git.py ~/bin/fork-repos-git
ln -s ~/git/scripts/vang/bitbucket/get_branches.py ~/bin/get-branches
ln -s ~/git/scripts/vang/bitbucket/get_clone_urls.py ~/bin/get-clone-urls
ln -s ~/git/scripts/vang/bitbucket/get_clone_urls_grep.py ~/bin/get-clone-urls-grep
ln -s ~/git/scripts/vang/bitbucket/get_default_branches.py ~/bin/get-default-branches
ln -s ~/git/scripts/vang/bitbucket/get_projects.py ~/bin/get-projects
ln -s ~/git/scripts/vang/bitbucket/get_repos.py ~/bin/get-repos
ln -s ~/git/scripts/vang/bitbucket/get_tags.py ~/bin/get-tags
ln -s ~/git/scripts/vang/bitbucket/has_branch.py ~/bin/has-branch
ln -s ~/git/scripts/vang/bitbucket/has_tag.py ~/bin/has-tag
ln -s ~/git/scripts/vang/bitbucket/open_remote.py ~/bin/open-remote
ln -s ~/git/scripts/vang/bitbucket/set_default_branches.py ~/bin/set-default-branches
ln -s ~/git/scripts/vang/jenkins/delete_jobs.py ~/bin/delete-jobs
ln -s ~/git/scripts/vang/jenkins/get_jobs.py ~/bin/get-jobs
ln -s ~/git/scripts/vang/jenkins/trigger_builds.py ~/bin/trigger-builds
ln -s ~/git/scripts/vang/maven/get_artifact_id.py ~/bin/get-artifact-id
ln -s ~/git/scripts/vang/maven/multi_module_project.py ~/bin/mmp
ln -s ~/git/scripts/vang/maven/project.py ~/bin/mp
ln -s ~/git/scripts/vang/maven/switch_settings.py ~/bin/switch-settings
ln -s ~/git/scripts/vang/misc/basic.py ~/bin/basic
ln -s ~/git/scripts/vang/misc/ext_local.py ~/bin/ext-local
ln -s ~/git/scripts/vang/misc/mac_ip.py ~/bin/ip
ln -s ~/git/scripts/vang/misc/s.py ~/bin/s
ln -s ~/git/scripts/vang/pio/command_all.py ~/bin/command-all
ln -s ~/git/scripts/vang/pio/rsr.py ~/bin/rsr
ln -s ~/git/scripts/vang/tfs/clone_repos.py ~/bin/tfs-clone-repos
ln -s ~/git/scripts/vang/tfs/create_repo.py ~/bin/tfs-create-repo
ln -s ~/git/scripts/vang/tfs/create_from_template.py ~/bin/tfs-create-from-template
ln -s ~/git/scripts/vang/tfs/delete_repo.py ~/bin/tfs-delete-repo
ln -s ~/git/scripts/vang/tfs/get_branches.py ~/bin/tfs-get-branches
ln -s ~/git/scripts/vang/tfs/get_projects.py ~/bin/tfs-get-projects
ln -s ~/git/scripts/vang/tfs/get_repos.py ~/bin/tfs-get-repos

处理它

  1. 创建虚拟环境

    conda create-n scripts python=3.7 autoep8 flake8 jedi more itertools pytest pytest cov请求绳轮yapf

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

推荐PyPI第三方库


热门话题
java如何在收到spring mqtt集成中停止重复订阅保留的消息   java改造安卓在textview中显示数据   读取CSV Java时获取While循环中的最后一行数据   将Java程序转换为小程序的部署   java如何在不向Src添加文件的情况下将文件放入GitLab测试   java包含字节数组列表的方法   java十进制转换错误   eclipse是由java引起的。lang.ClassNotFoundException:org。springframework。js。资源ResourceServlet   继承Java向上与向下   java自动调整标签内容的大小   java从Android中的AlertDialog返回信息   java在声明按钮时仿真程序中出现错误   java编写刷新线程的最佳方法   Java初学者错误   java需要帮助重置JComboBox   java如何用Spring/MultipartFile捕获中断流   java是否可以在JUnit中设置被测试类的方法的返回值?