Struct toml_bombadil::Bombadil [−][src]
pub struct Bombadil { /* fields omitted */ }
Expand description
The main crate struct, it contains all needed medata about a dotfile directory and how to install it.
Implementations
Given a git remote address, will clone the repository to the target path and install the dotfiles according to the “bombadil.toml” configuration inside the repo root.
Symlink bombadil.toml
to $XDG_CONFIG/bombadil.toml
so we can later read it from there.
The installation process is composed of the following steps :
- Run pre install hooks
- If any previous state is found in
.dot/previous_state.toml
, remove the existing symlinks - Clean existing rendered dotfiles templates in
.dot
- Copy and symlink dotfiles according to the current
$XDG_CONFIG/bombadil.toml
configuration - Run post install hooks
- Write current state to
.dot/previous_state.toml
Add a gpg secret encrypted variable to the target variable file
Pretty print current bombadil variables
Enable a dotfile profile by merging its config with the default profile
Load Bombadil config from a bombadil.toml
Pretty print metadata, possible values are Dots, PreHooks, PostHook, Path, Profiles, Vars, Secrets