Start work on basic CLI features

+ Add basic logic for detecting conflicting configs, prompt to abort or
  continue
+ Create symlinks to configs
+ Basic usage is `kot path/to/dotfiles/`
+ Add `--backup-dir` option for setting directory for backing up configs
+ Default backup-dir to `backups/kapper` until finished testing
+ Add `--home-dir` option for setting location to install configs
+ Default home-dir setting to `dry-runs/kapper` until finished testing
This commit is contained in:
2021-09-28 18:54:37 -04:00
parent cb0e627a42
commit eadf1fd0a2
16 changed files with 490 additions and 6 deletions

View File

@@ -1,6 +1,26 @@
#### dotk
#### kot
Learning to program in Rust by making myself a Linux CLI tool to help manage dotfiles and configurations.
There are many other tools to manage dotfiles that work just fine. For now, this is intended to be just for my own learning / use and not a general dotfiles management utility. If I enjoy working on it and get good use out of it, I may rethink this later.
There are many other tools to manage dotfiles that work just fine. For now, this is intended to be just for my own learning / use and not a general dotfiles management utility.
```bash
[kapper@kubuntu ~]$./kot --help
kot 0.1.0
CLI utility for managing Linux user configurations
USAGE:
kot [OPTIONS] <config>
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
--backup-dir <backup-dir> The location to store backups for this user [default: backups/kapper]
--home-dir <install-dir> The location to attempt installation of user configurations [default: dry-
runs/kapper]
ARGS:
<config> Local or full path to user configurations to install
```