generated from chrisgrieser/nvim-pseudometa-plugin-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Justfile
44 lines (38 loc) · 1004 Bytes
/
Justfile
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
# INFO
# This file is for testing and demonstration purposes only. The recipes do not
# perform any actually useful actions.
#───────────────────────────────────────────────────────────────────────────────
set quiet := true
# streaming
demo-progressbar:
#!/usr/bin/env zsh
char="+"
progress=""
for i in {1..20}; do
progress="$progress$char"
printf "\33[2K\r"
printf "$progress"
sleep 0.1
done
printf "\33[2K\r"
echo "Done."
# quickfix
demo-quickfix:
rg --vimgrep "local"
demo-failure:
#!/usr/bin/env zsh
echo "failure"
sleep 0.1
exit 1
demo-success:
#!/usr/bin/env zsh
echo "success"
sleep 0.1
exit 0
# asks for input
demo-in-terminal:
#!/usr/bin/env zsh
echo "Enter something: "
read -r input
echo
echo "Input was: $input"