Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
91 changes: 57 additions & 34 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bb-cli"
version = "0.3.8"
version = "0.4.0"
edition = "2024"

[dependencies]
Expand All @@ -20,6 +20,7 @@ toml_edit = "0.23.7"
similar = { version = "2.7", features = ["inline"] }
dialoguer = "0.12.0"
glob = "0.3.3"
urlencoding = "2.1.3"

[[bin]]
name = "bb"
Expand Down
51 changes: 51 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ curl -fsSL https://raw.githubusercontent.com/tmaffia/bitbucket-cli/main/scripts/

- **Authentication**: Secure login using Bitbucket API Tokens (stored in system keyring).
- **Pull Requests**: List, view, diff, and comment on pull requests.
- **Repository Browsing**: List files, view file contents, and open repos in browser.
- **Code Search**: Search code across your workspace.
- **Configuration**: Manage multiple profiles and default settings.
- **Git Integration**: Auto-detects repository and branch from current directory.

Expand Down Expand Up @@ -81,6 +83,55 @@ bb repo list
bb repo list --limit 20
```

List files and directories:

```bash
# List root directory
bb repo tree

# List specific path
bb repo tree src/commands/

# List on a specific branch
bb repo tree --ref main
```

View file contents:

```bash
bb repo view README.md
bb repo view src/main.rs --ref develop
```

### Browse

Open repository in browser:

```bash
# Current repository
bb browse

# Specific repository
bb browse myworkspace/myrepo
```

### Search

Search code across your workspace:

```bash
bb search code "function_name"

# Filter by extension
bb search code "error" --extension rs

# Filter by repository
bb search code "TODO" --repo myrepo

# Limit results
bb search code "panic" --limit 10
```

### Pull Requests

List pull requests:
Expand Down
Loading