-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtasks.py
52 lines (45 loc) · 876 Bytes
/
tasks.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import platform
from invoke import task
from provisioning import apt
from provisioning import brew
from provisioning import core
DEPENDENCIES = {
'Linux': (
core.dotfiles,
apt.ag,
apt.fzf,
apt.git,
apt.htop,
apt.keepass2,
apt.maestral,
apt.meld,
apt.neovim,
apt.oh_my_zsh,
apt.powerlevel10k,
apt.tmux,
apt.xclip,
apt.zsh,
),
'Darwin': (
core.dotfiles,
brew.ag,
brew.discord,
brew.firefox,
brew.fzf,
brew.htop,
brew.keepassxc,
brew.maestral,
brew.neovim,
brew.oh_my_zsh,
brew.powerlevel10k,
brew.tmux,
brew.vlc,
brew.zsh,
)
}
if platform.system() not in DEPENDENCIES:
raise NotImplementedError(f"Unrecognized platform: {platform.system()}")
@task(*DEPENDENCIES[platform.system()])
def all(c):
"""Install all dependencies."""
print('All done!')