Crates.io | bitbucket_server_cli |
lib.rs | bitbucket_server_cli |
version | 0.4.5 |
source | src |
created_at | 2020-03-28 11:48:57.190676 |
updated_at | 2021-10-25 09:34:37.555653 |
description | A CLI for cloning and updating entire projects from bitbucket server |
homepage | https://github.com/jensim/bitbucket_server_cli/ |
repository | https://github.com/jensim/bitbucket_server_cli/ |
max_upload_size | |
id | 223780 |
size | 98,407 |
# From brew
brew install jensim/bitbucket_server_cli/bitbucket_server_cli
# From cargo
cargo install bitbucket_server_cli
# From source
cargo install --path . --force
& Windows subsystem Linux
https://github.com/jensim/linuxbrew-bitbucket_server_cli-linux/
brew install jensim/bitbucket_server_cli-linux/bitbucket_server_cli
# or
brew tap jensim/linuxbrew-bitbucket_server_cli-linux git@github.com:jensim/linuxbrew-bitbucket_server_cli-linux.git
brew install bitbucket_server_cli
Head over to the releases page and snag the windows *.exe
archive.
Or build from source.
Or install from Cargo, which will build from source.
Interactive mode doesn't work in Cygwin
/GitBash
terminals due to lacking support in dialoguer, stick to using cmd.exe
and PowerShell
terminals
# Fully interactive
bitbucket_server_cli clone
# Partially interactive
bitbucket_server_cli clone -s https://example.com
# Batch mode
bitbucket_server_cli -B -s https://example.com -A
# 'Safe' password usage in batch mode. Depending on terminal, password might be seen in process description.
IFS= read -rs BITBUCKET_PASSWORD < /dev/tty
export BITBUCKET_PASSWORD
bitbucket_server_cli -s https://example.com -A -u jensim -W
# Run from source
cargo run -- clone
I've set up a little pre-commit bash-script that will run fmt
, clippy
& integration-tests
git config core.hooksPath .githooks
# or
./.githooks/pre-commit