shim-0.1.4 is not a library.
Shim
Create shims for executables from config files.
Stability Warning
API may change wildly until while the major version number is 0.
Once this crate's version hits 1.0.0
api changes will only happen with major version bumps.
Installation
With Cargo
Usage
Cli
Shim config files
Motivation
Condensing configuration
My git configuration was scattered over too many places
-
Git allows arbitrary commands to be named with prefix
git-
and git will -
My git config file defined aliases
[]
= remote get-url origin
= rev-parse --show-toplevel
= !cz commit
= !cz commit
- My bashrc has a function that
- adds pre/post hooks globally, for all git commands
- overrides some git subcommands
- Git hooks
Forking fewer times when calling git
I've created quite a few hooks.
I've written a tool for some of my hooks (TODO: publish that tool and link here) in rust. I plan for shim
to be able to load shims from dynamic libraries instead of forking a bunch of processes