Scripts
Project description
# Scripts
Miscellaneous scripts
## Suggested usage ##
1. Clone this repository
2. Add required environment variables, see vang/artifactory/api.py and vang/bitbucket/api.py
2. Create a directory, e.g. ~/bin, and add it to your path
3. Create symbolic links (see example below). If on windows, create cmd-files that calls the scripts
4. All python scripts has help, e.g
~/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
5. For the use of non-python scripts, look at the documentation in the script
## Symbolic links example ##
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/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/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/pio-rsr
Miscellaneous scripts
## Suggested usage ##
1. Clone this repository
2. Add required environment variables, see vang/artifactory/api.py and vang/bitbucket/api.py
2. Create a directory, e.g. ~/bin, and add it to your path
3. Create symbolic links (see example below). If on windows, create cmd-files that calls the scripts
4. All python scripts has help, e.g
~/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
5. For the use of non-python scripts, look at the documentation in the script
## Symbolic links example ##
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/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/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/pio-rsr
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
vang-0.5.0.tar.gz
(21.0 kB
view hashes)
Built Distribution
vang-0.5.0-py3-none-any.whl
(41.3 kB
view hashes)