脚本
vang的Python项目详细描述
脚本
其他脚本
建议使用
克隆此存储库
用pip3安装-e。
添加所需的环境变量,如vang/artifactory/api.py和vang/bitbucket/api.py
创建一个目录,例如~/bin,并将其添加到您的路径中
创建符号链接(参见下面的示例)。如果在Windows上,请创建调用脚本的命令文件
所有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
要使用非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
处理它
创建虚拟环境
conda create-n scripts python=3.7 autoep8 flake8 jedi more itertools pytest pytest cov请求绳轮yapf