Skip to content

aloutfi/barrage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Nov 3, 2024
df08778 · Nov 3, 2024

History

6 Commits
Dec 17, 2023
Nov 10, 2023
Nov 3, 2024
Nov 3, 2024

Repository files navigation

barrage

A filepath-oriented command line utility for streamlining development and administration over multiple git repositories.

Examples

cd ~/Workspace/folder_of_repos/
barrage git checkout -b AOL/something-i-need-to-do-in-a-few-repos
barrage cp ~/Desktop/pull_request_template.md .github/ && git commit -m "chore: added  pull request template." .github/
barrage poetry lock && git commit -m "chore: ran lock" && git push

Alias creation

barrage alias pr gh pr create --fill && gh pr merge --auto --merge && gh pr view --json url | jq -r ".url" 
barrage pr
barrage alias whereami basename -s .git `git config --get remote.origin.url`
barrage alias status whereami && git status
barrage status

Requirements

  • Git
  • Bash

Installation

  1. Clone the repository:

    git clone https://github.com/aloutfi/barrage.git
    cd barrage
  2. Make the script executable:

    chmod +x barrage
  3. Move the script to a directory in your PATH, for example:

    sudo mv barrage /usr/local/bin/

Alias Management

Creating an Alias

To create an alias, use the barrage alias command followed by the alias name and the command you want to alias. For example:

barrage alias myalias "echo Hello, World!"

This will create an alias named myalias that runs the command echo Hello, World!.

Using an Alias

To use an alias, simply call it by its name:

barrage myalias

This will execute the command associated with the alias.

Listing Aliases

To list all aliases, you can view the contents of the .barrage_aliases file in your home directory:

cat ~/.barrage_aliases

Removing an Alias

To remove an alias, you can manually edit the .barrage_aliases file and remove the corresponding line.

About

Administer over multiple git repos with ease

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages