SuperCuber / dotter

A dotfile manager and templater written in rust 🦀
The Unlicense
901 stars 48 forks source link

[FEATURE] Interactive setup #148

Open peterkos opened 1 year ago

peterkos commented 1 year ago

Describe the solution you'd like Would be neat to have a setup script like so:

> dotter setup
Welcome to dotter!
Do you have an existing dotfiles repo locally? (y/N) n
Let's create a new one!
Where should it live? (default: `~/.dotfiles`) ~/.dotfiles

Creating initial files...
Done!

(This would do the git init, .gitignore, touch config.toml global.toml)

Would also be cool for interactively setting up file locations. Maybe search for a list of known files, or an option to pass a list of locations?

Either way, something like ratatui could help provide the functionality.

Describe alternatives you've considered n/a

Additional context n/a

peterkos commented 1 year ago

Edit: Oh! I checked the issues, but not PRs 😅 I see #112 adds an interactive config.

I also plan on creating a more feature rich TUI for the local config including changing variables, but I wanted to get some feedback first before making deeper changes.

I belive this accomplishes the same goal? @SIMULATAN does this issue sound like what you're building, or is yours more for configuring an already-existing folder?

SuperCuber commented 1 year ago

There's a kinda-similar dotter init command, but it expects to be run in an already existing repository full of dotfiles (that presumably you want to migrate from using some other method)