forked from talonhub/community
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yml
61 lines (56 loc) · 3.53 KB
/
Taskfile.yml
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
53
54
55
56
57
58
59
60
61
version: "3"
tasks:
upload-cheatsheet:
desc: '.'
cmds:
- echo "mimic('wake up')" |/Users/maciek/.talon/.venv/bin/repl
- echo "mimic('cheat sheet')" |/Users/maciek/.talon/.venv/bin/repl
- algolia indices clear talon -y
- algolia objects import talon -F /Users/maciek/.talon/user/knausj_talon/maciek/cheatsheet.ndjson
deploy:
desc: "."
cmds:
- echo -e "\033[1;32m\n🚀 ==========================================\n🚀 Starting Talon configuration deployment\n🚀 ==========================================\n\033[0m"
- |
if [ ! -d ~/projects/knausj_talon ]; then
echo -e "\033[1;31m\n⚠️ ==========================================\n⚠️ WARNING: ~/projects/knausj_talon directory does not exist!\n⚠️ ==========================================\n\033[0m"
else
rsync -rq --delete --exclude=.git --exclude=maciek/experimental --exclude=.venv --exclude="/image_templates" ~/projects/knausj_talon ~/.talon/user/ && echo -e "\033[1;32m✓ knausj_talon copied successfully\033[0m"
fi
- |
if [ ! -d ~/projects/knausj_talon/cursorless-settings ]; then
echo -e "\033[1;31m\n⚠️ ==========================================\n⚠️ WARNING: ~/projects/knausj_talon/cursorless-settings directory does not exist!\n⚠️ ==========================================\n\033[0m"
else
rsync -rq --delete --exclude=.git ~/projects/knausj_talon/cursorless-settings ~/.talon/user/ && echo -e "\033[1;32m✓ cursorless-settings copied successfully\033[0m"
fi
- |
if [ ! -d /Users/maciek/projects/talon-gaze-ocr ]; then
echo -e "\033[1;31m\n⚠️ ==========================================\n⚠️ WARNING: /Users/maciek/projects/talon-gaze-ocr directory does not exist!\n⚠️ ==========================================\n\033[0m"
else
rsync -rq --delete --exclude=.git /Users/maciek/projects/talon-gaze-ocr ~/.talon/user/ && echo -e "\033[1;32m✓ talon-gaze-ocr copied successfully\033[0m"
fi
- |
if [ ! -d /Users/maciek/projects/cursorless-talon ]; then
echo -e "\033[1;31m\n⚠️ ==========================================\n⚠️ WARNING: /Users/maciek/projects/cursorless-talon directory does not exist!\n⚠️ ==========================================\n\033[0m"
else
rsync -rq --delete --exclude=.git /Users/maciek/projects/cursorless-talon ~/.talon/user/ && echo -e "\033[1;32m✓ cursorless-talon copied successfully\033[0m"
fi
- |
if [ ! -d /Users/maciek/projects/rango-talon ]; then
echo -e "\033[1;31m\n⚠️ ==========================================\n⚠️ WARNING: /Users/maciek/projects/rango-talon directory does not exist!\n⚠️ ==========================================\n\033[0m"
else
rsync -rq --delete --exclude=.git /Users/maciek/projects/rango-talon ~/.talon/user/ && echo -e "\033[1;32m✓ rango-talon copied successfully\033[0m"
fi
show-cheatsheet:
desc: "."
cmds:
- /opt/homebrew/bin/fish -c "google-chrome cheatsheet.html"
deploy-cursorless:
desc: "."
cmds:
- |
if [ ! -d ~/projects/cursorless-talon ]; then
echo -e "\033[1;31m\n⚠️ ==========================================\n⚠️ WARNING: ~/projects/cursorless-talon directory does not exist!\n⚠️ ==========================================\n\033[0m"
else
rsync -rq --delete --exclude=.git ~/projects/cursorless-talon ~/.talon/user/
fi