-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
42 lines (34 loc) · 988 Bytes
/
justfile
File metadata and controls
42 lines (34 loc) · 988 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
38
39
40
41
42
# inanepain/cli
# version: $Id$
# date: $Date$
set shell := ["zsh", "-cu"]
set positional-arguments
project := "inane\\cli"
# list recipes
_default:
@echo "{{project}}:"
@just --list --list-heading ''
# start
_start task='':
@echo "{{project}}: {{GREEN}}start{{NORMAL}}: {{task}}"
# done
_done task='':
@echo "{{project}}: {{GREEN}}done{{NORMAL}} {{task}}"
# git push all
[group: 'GIT']
git-push-all: (_start "Push All") && (_done "Push All")
#!/usr/bin/env zsh
git pushall
# generate php part (v2) (all, cache, html)
php-doc clear="all":
#!/usr/bin/env zsh
if [ -d .phpdoc ] && [[ "{{clear}}" = "all" || "{{clear}}" = "cache" ]]; then
echo "\tCleaning: cache..."
rm -fr .phpdoc
fi
if [ -d documentation/code ] && [[ "{{clear}}" = "all" || "{{clear}}" = "html" ]]; then
echo "\tCleaning: html..."
rm -fr documentation/code
fi
mkdir -p documentation/code
phpdoc -d src -t documentation/code --title="{{project}}" --defaultpackagename="Inane"