-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathJustfile
More file actions
38 lines (28 loc) · 786 Bytes
/
Justfile
File metadata and controls
38 lines (28 loc) · 786 Bytes
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
# Units Justfile
# Command line support
# About Units Commands
_default:
@echo '{{ style("warning") }}Units Script Commands{{ NORMAL }}'
@echo @{{source_file()}}
@echo ""
@just -f {{source_file()}} --list
# Install 'units' in /usr/local/bin
install:
swift build -c release
cp .build/release/unit /usr/local/bin/
# rm 'units' from /usr/local/bin
uninstall:
rm /usr/local/bin/unit
# Add swiftformat to git/pre-commit
dev_setup:
echo "./Scripts/git_commit_hook.sh" > .git/hooks/pre-commit
# Open Documentation
docs:
open https://swiftpackageindex.com/NeedleInAJayStack/Units/v1.0.0/documentation/units
git_origin := `git remote get-url origin`
# repo/origin
repo:
@echo {{git_origin}}
# open repo/origin
open-repo:
open {{git_origin}}