Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] dotter init should be recursive #125

Open
KrullBorg opened this issue May 15, 2023 · 2 comments
Open

[FEATURE] dotter init should be recursive #125

KrullBorg opened this issue May 15, 2023 · 2 comments

Comments

@KrullBorg
Copy link

Is your feature request related to a problem? Please describe.
For directories dotter init makes empty items in default package files section

Describe the solution you'd like
I think it should be recursive, considering each directory as a package (as GNU Stow)

For example, this .dotfiles directory

bash/.bashrc
bash/.bash_logout
bash/.profile
emacs/.emacs
openbox/.config/openbox/rc.xml

should produce this global.toml

[default]
depends = []

[default.files]

[default.variables]

[bash]
depends = []

[bash.files]
"bash/.bashrc"="~/.bashrc"
"bash/.bash_logout"="~/.bash_logout"
"bash/.profile"="~/.profile"

[emacs]
depends = []

[emacs.files]
"emacs/.emacs"="~/.emacs"

[emacs.variables]

[openbox]
depends = []

[openbox.files]
"openbox/.config/openbox/rc.xml"="~/.config/openbox/rc.xml"

[openbox.variables]
@SuperCuber
Copy link
Owner

Right now dotter init is there for you to avoid getting stuck on basic toml syntax or field names. It's all empty on purpose.

I think this could be a cool idea to add as a dotter init --stow flag though.
I'm not sure how stow does things exactly, but I assume this would only take folders and ignore files at the top level.
A PR for this is very welcome :)

@KrullBorg
Copy link
Author

ok i'll try

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants