DT
DT
allows you to sync/populate configuration files at will. It currently provides a CLI tool dt-cli
.
Usage
The command line interface dt-cli
takes a path to the configuration file as argument and issues the syncing process defined in the configuration file.
See documentations for configuration guides and detailed usages.
Example
A minimal working configuration file to sync all files that matches *init.vim
from ~/dt/nvim
to ~/.config/nvim
can be written as:
[[local]]
name = "Neovim Configs"
basedir = "~/dt/nvim"
sources = ["*init.vim"]
target = "~/.config/nvim"
~/.config/nvim
.
Save above config to ~/.config/dt/cli.toml
and run
$ dt-cli -c ~/.config/dt/cli.toml
to start syncing. Note the path in this example (~/.config/dt/cli.toml
) is also the default path, so the below command (calling dt-cli
with no argument) does the same thing as above:
$ dt-cli
Other command line options & flags
Options/Flags | Description |
---|---|
-c|--config-path <path> |
Specifies path to config file. |
-d|--dry-run |
Shows changes to be made without actually syncing files. |
-v|--verbose |
Increases logging verbosity. |
-q|--quiet |
Decreases logging verbosity. |
-h|--help |
Prints help information. |
-V |
Prints version information. |
Install
AUR
dt-cli
is in the AUR, you can install it with your favorite package manager:
$ paru -S dt-cli
Alternative Ways
Alternatively, you can:
-
Download latest release from GitHub
-
Install from crates.io:
$ cargo install dt-cli
-
Build from source:
$ git clone github.com:blurgyy/dt.git $ cd dt $ cargo test --release $ cargo install --path=dt-cli
Contributing
There are many ways to contribute to this project. Get started here!
License
Licensed under the the MIT license http://opensource.org/licenses/MIT or Apache License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0, at your option. This file may not be copied, modified, or distributed except according to those terms.