Skip to content

bdobruno/bdo-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bdo-cli Logo

bdo-cli is a small Rust CLI for common Git, GitHub, and repository workflow commands.

Installation

Install the CLI with Cargo:

cargo install --git https://github.com/hellobdo/bdo-cli --tag v1.2.0

This installs the bdo binary into Cargo's bin directory, usually ~/.cargo/bin. Make sure that directory is available in your PATH.

Requirements

bdo-cli shells out to existing developer tools. Before using it, install:

  • Rust and Cargo: for installing and updating the CLI
  • Git: for repository operations
  • GitHub CLI: for creating GitHub repositories

You should also be authenticated with the GitHub CLI before using bdo create:

gh auth login

Available Commands

  • bdo help - Show all available commands
  • bdo create <repo-name> - Create a local repository, make the initial commit, and create the GitHub repository
  • bdo push - Add, commit, and push changes
  • bdo branch <branch-name> - Create and push a new branch
  • bdo checkout - Switch back to main, delete the previous branch, and reset main to origin/main

Development

Run the CLI locally with Cargo:

cargo run -- help

Run the Rust checks used by CI:

cargo fmt --check
cargo clippy --all-targets --all-features -- -D warnings
cargo test --all-targets --all-features
cargo build --release --locked

Uninstallation

If you installed with Cargo, uninstall with:

cargo uninstall bdo-cli

License

This project is licensed under the MIT License. See LICENSE for details.

About

bdo-cli provides a collection of helpful shell scripts for Git, GitHub, and development workflows.

Resources

License

Stars

Watchers

Forks

Contributors

Languages