Crate dotfiles_core

Source
Expand description

The core of Dotfiles-rs is basically a set of directives that can build executable actions from configuration sources (StrictYaml is the only supported configuration source so far).

Directives are responsible for parsing configuration from the configuration source, applying default settings if necessary, and using these to build actions that can be executed.

The base traits and classes for these building blocks can be found in the action and directive modules. The yaml_util module is a set of helper functions for Directives to parse configuration.

Re-exports§

pub use action::Action;
pub use directive::Directive;
pub use settings::Setting;
pub use settings::Settings;

Modules§

action
This module contains the base trait for all Actions.
directive
This module contains the base trait for all Directive and all necessary conveniences to allow for user-configuration of directive defaults.
error
Module for the error handling classes and enums.
exec_wrapper
Wraps some logic to run external commands and handle errors
path
Contains helpful functions to deal with paths in the context of parsing them for dotfiles configs.
settings
This module contains the definition of a setting and code to parse them.
yaml_util
Module that defines helper functions to process YAML configuration sources.