-
-
Notifications
You must be signed in to change notification settings - Fork 74
Expand file tree
/
Copy pathJustfile
More file actions
78 lines (67 loc) · 2.02 KB
/
Justfile
File metadata and controls
78 lines (67 loc) · 2.02 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Copyright (c) Humanitarian OpenStreetMap Team
#
# This file is part of Field-TM.
#
# Field-TM is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Field-TM is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Field-TM. If not, see <https:#www.gnu.org/licenses/>.
#
set dotenv-load
mod start 'tasks/start'
mod stop 'tasks/stop'
mod build 'tasks/build'
mod test 'tasks/test'
mod config 'tasks/config'
mod manage 'tasks/manage'
mod prep 'tasks/prep'
mod chart 'tasks/chart'
mod docs 'tasks/docs'
# List available commands
[private]
default:
just help
# List available commands
help:
just --justfile {{justfile()}} --list
# Delete local database, S3, and ODK Central data
clean:
docker compose down -v
# Run pre-commit hooks
lint:
#!/usr/bin/env sh
cd {{justfile_directory()}}/src/backend
uv run pre-commit run --all-files
# Increment field-tm
bump:
#!/usr/bin/env sh
cd {{justfile_directory()}}/src/backend
uv run cz bump --check-consistency
# Increment osm-fieldwork (doesn't work yet!)
bump-osm-fieldwork:
#!/usr/bin/env sh
cd {{justfile_directory()}}/src/backend
uv --project packages/osm-fieldwork --directory packages/osm-fieldwork run cz bump --check-consistency
# Echo to terminal with blue colour
[no-cd]
_echo-blue text:
#!/usr/bin/env sh
printf "\033[0;34m%s\033[0m\n" "{{ text }}"
# Echo to terminal with yellow colour
[no-cd]
_echo-yellow text:
#!/usr/bin/env sh
printf "\033[0;33m%s\033[0m\n" "{{ text }}"
# Echo to terminal with red colour
[no-cd]
_echo-red text:
#!/usr/bin/env sh
printf "\033[0;41m%s\033[0m\n" "{{ text }}"