4a04b45b7b
Refactored Links::link implementation to be able to deal with several possible scenarios: - file already linked (happy case) - link to different file exists - non link file exists - broken symlink exists - no file exists (happy case) - generic failure Also attempted to make the code more readable than previous attempt. Admittedly, still needs some work. Signed-off-by: Christina Sørensen <christina@cafkafk.com> |
||
---|---|---|
src | ||
tst | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
CODE_Of_CONDUCT.md | ||
install | ||
install_debug | ||
LICENSE | ||
README.org | ||
shell.nix |
gg - git gut
A Rust GitOps/symlinkfarm orchestrator inspired by GNU Stow. Useful for dealing with "dotfiles", and with git support as a first class feature. Configuration is done throug a single yaml file, giving it a paradigm that should bring joy to those that use declarative operating systems and package managers.
Although this isn't really a case where it matters that much for performance, being written in rust instead of e.g. janky scripting languages does also mean it is snappy and reliable, and the extensive testing helps ensure regressions aren't introduced.
That said, we're in 0.0.Z, here be dragons for now.
Installation
$ git clone https://github.com/cafkafk/git
$ ./install
Configuration
If you want a template, you can copy the file from tst/config.yaml:
$ cp tst/config.yaml ~/.config/gg/config.yaml
You should seriously change this file before running any commands.
The configuration format will likely break regularly in versions 0.Y.Z.