Git Product home page Git Product logo

bin's Introduction

bin

Utility bash scripts for cargo, git, etc.

cargo-clean

cargo-clean searches for target folders and Cargo.toml files in a given directory. For all found sub directories, cargo clean is executed.

Usage

cargo-clean <directory>
cargo-clean <directory> --dry-run

Examples

cargo-clean ~/my_rust_projects

A dry run of cargo-clean is accomplished via parameter --dry-run:

cargo-clean ~/my_rust_projects --dry-run
> Checking ~/my_rust_projects for Rust targets
> cargo clean ~/my_rust_projects/serde (dry run)
> cargo clean ~/my_rust_projects/tokio (dry run)
> cargo clean ~/my_rust_projects/rayon (dry run)
> 3 targets removed (dry run)

cargo-regression

cargo-regression runs all integration tests which are behind feature flag "integration-test" on two branches. Some of these tests may fail. It then compares the test results and determines if any regression did occur.

Usage

  1. Copy script to ~/bin
  2. Add ~/bin to PATH:
    export PATH="$HOME/bin:$PATH"
  3. Make script executable:
    chmod u+x cargo-regression
  4. Run the script in your local Rust project:
    cargo-regression

git-checkout

git-checkout searches all local branches for keywords and checks out the matched branch. If the branch couldn't be found locally, all remote branches are searched. The matched branch is checked out locally and set up to track the remote branch.

Usage

git-checkout <keyword1> <keyword2> <keyword3> ... <keywordn>
git-checkout <keyword1> <keyword2> <keyword3> ... <keywordn> --dry-run

Examples

Search and check out local branch

git-checkout fix bug
> Searching for pattern: *fix*bug*
> Switched to branch 'bug-386729-fix-terrible-bug'
> Your branch is up to date with 'origin/bug-386729-fix-terrible-bug'.

Search and check out remote branch

git-checkout fix bug
> Searching for pattern: *fix*bug*
> Branch 'bug-386729-fix-terrible-bug' set up to track remote branch 'bug-386729-fix-terrible-bug' from 'origin'.
> Switched to a new branch 'bug-386729-fix-terrible-bug'

bin's People

Contributors

quambene avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.