-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjustfile
More file actions
49 lines (36 loc) · 1.57 KB
/
justfile
File metadata and controls
49 lines (36 loc) · 1.57 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
# project justfile
import? '.just/shellcheck.just'
import? '.just/compliance.just'
import? '.just/gh-process.just'
# list recipes (default works without naming it)
[group('example')]
list:
just --list
@echo "{{GREEN}}Your justfile is waiting for more scripts and snippets{{NORMAL}}"
# generate a clean README
[group('Utility')]
[no-cd]
clean_readme:
#!/usr/bin/env bash
set -euo pipefail # strict mode without tracing
GIT_ORIGIN=$(git config --get remote.origin.url | sed -e 's/^.*://' -e 's/[.]git$//')
#echo "$GIT_ORIGIN"
GITHUB_ORG=$(echo "$GIT_ORIGIN" | sed -e 's/[/].*$//')
echo "org={{BLUE}}$GITHUB_ORG{{NORMAL}}"
GITHUB_REPO=$(echo "$GIT_ORIGIN" | sed -e 's/^.*[/]//')
echo "repo={{BLUE}}$GITHUB_REPO{{NORMAL}}"
cat > README.md << END_OF_HEREDOC
# ${GITHUB_REPO}




A good starting place for something. (TODO)
## Contributing
- [Code of Conduct](.github/CODE_OF_CONDUCT.md)
- [Contributing Guide](.github/CONTRIBUTING.md) includes a step-by-step guide to our
[development processs](.github/CONTRIBUTING.md#development-process).
## Support & Security
- [Getting Support](.github/SUPPORT.md)
- [Security Policy](.github/SECURITY.md)
END_OF_HEREDOC