Crates.io | git-helpe-rs |
lib.rs | git-helpe-rs |
version | 1.0.5 |
source | src |
created_at | 2024-02-03 21:56:51.560077 |
updated_at | 2024-02-07 05:55:15.764558 |
description | CLI helpers for formatting commits and branches, to make my daily work easier. Moderatly fast. |
homepage | |
repository | |
max_upload_size | |
id | 1125677 |
size | 65,738 |
CLI helper for formatting branches and commits
Probably when you code you have some requirements about branch name and commit format. I want to make it easy for myself, maybe someone finds themself in the same situation.
This cli provides you with following commands:
show
- show current configset-prefix k value
- sets key-value pair for your branch prefixb k
- uses what you have in your clipboard and ads your prefix to it and checkouts to new branchset-commit "Your own template with {}; That will be interpolated on each {}"
- this sets format for your commitsb c here "are values with which your template will be interpolated"
- by this you will make a commit with given formatset-branch "Same as for commit, but doesn't yet work"
- tbddelete k
- deletes key from branch prefixesGet the git repo, build it with:
cargo build -r
Go to
cd ./target/release/
run:
chmod +x git-helpe-rs
and copy it to your bin directory to start using or make alias for it.
Or as one command:
git clone git@github.com:Zolwiastyl/git-helpe-rs.git &&
cargo build -r &&
cd ./target/release &&
chmod +x git-helpe-rs
[x] use clap builder [x] piping output from git [x] add variants for template in gitconfig [x] adding clipboard commands [x] setting branch template [x] branch formatting with template
[x] copy flag and dry run [x] commit [x] branch: [x] prefix [x] template
[ ] {b} in templates [ ] {[]} in templates [ ] autocompletion [ ] publish
ADD VARIANTS FOR TEMPLATE set-branch-format Set template that can be used when switching branches set-commit Set template for commit formatting
set-branch-prefix Set prefix for checkout using clipboard contents key value
bp Check you out to a branch using your clipboard contents prefixKey
bf Check out to a branch based on template -k use exact template c Commit using one of templates -a use autocomplete values -k use exact template -b use number from branch template-key ..interpolate-values
show Show current config in plain JSON help Print this message or the help of the given subcommand(s)