-
-
Notifications
You must be signed in to change notification settings - Fork 35
/
justfile
43 lines (35 loc) · 981 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
# Declaratively set shell recipes a.k.a commands should run in
set shell := ["bash", "-uc"]
# Load environment variables
set dotenv-load := true
# apikey:
# echo " from .env"
# set positional-arguments := true
# foo:
# echo justinit
# echo
# Colours
RED:= "\\033[31m"
GREEN:= "\\033[32m"
YELLOW:= "\\033[33m"
BLUE:= "\\033[34m"
MAGNETA:= "\\033[35m"
CYAN:= "\\033[36m"
WHITE:= "\\033[37m"
BOLD:= "\\033[1m"
UNDERLINE:= "\\033[4m"
INVERTED_COLOURS:= "\\033[7m"
RESET := "\\033[0m"
NEWLINE := "\n"
# Recipes
default:
@#This recipe will be the default if you run just without an argument, e.g list out available commands
@just --list --unsorted --list-heading $'{{BOLD}}{{GREEN}}Available recipes:{{NEWLINE}}{{RESET}}'
format:
stylua .
test:
make test
# Hidden Recipes
_bold_squares message:
@#Hidden recipes have _ in front, i.e these can be helpers such as pretty printer below
@echo -e "{{BOLD}}[{{RESET}}{{message}}{{RESET}}{{BOLD}}]{{RESET}}"