-
Notifications
You must be signed in to change notification settings - Fork 298
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 request: add optional tasks #96
Comments
Well, you're right. Hope we'll find a solution! It seems many of us would love such a feature. |
Obviously @anishathalye you have the final word here, but I'd be concerned about feature creep. One of Dotbot's great strengths is that it's dead simple, and starting to add advanced configuration options might remove some of that simplicity. You already have a plugin API -- I'd much rather see this kind of functionality implemented as a plugin than in the Dotbot core. |
However, letting tasks have some kind of - groups:
- "init"
shell:
- [sudo apt-get install -y i3, Installing required softwares]
- link:
- ~/.config/i3/config: i3/config Alternatively you can require that all additional attributes have to be specified in an "attributes" element, which can then be passed on to plugins etc: - shell:
- [sudo apt-get install -y i3, Installing required softwares]
attributes:
- "optional"
- name: "install-i3"
- groups: ["init"]
- link:
- ~/.config/i3/config: i3/config Heck, this way you could even have a |
I've merged in #214 to allow For groups of tasks, I think the right solution is splitting them into |
I would like Dotbot to install the required softwares by my dotfiles. For instance, if I use
i3
, I would add toinstall.conf.yaml
:But imagine I need multiple softwares like
fish
,tmux
, Vim, etc. and with multiple package managers (npm install -g bower gulp yo
,sudo pip install pre-commit pre-commit-hooks thefuck
, etc.), each time I run./install
, the whole installation process will take several minutes to run, especially on low resource systems such as the Raspberry Pi v1.I know Dotbot should be idempotent, but wouldn't be great to run
./install --init
or something to execute specific part of the file (for instance, install the required softwares)? Then, theinstall.conf.yaml
would become:The text was updated successfully, but these errors were encountered: