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 :

  1. Run pre install hooks
  2. If any previous state is found in .dot/previous_state.toml, remove the existing symlinks
  3. Clean existing rendered dotfiles templates in .dot
  4. Copy and symlink dotfiles according to the current $XDG_CONFIG/bombadil.toml configuration
  5. Run post install hooks
  6. Write current state to .dot/previous_state.toml

Unlink dotfiles according to previous state

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.