1 | #!/usr/bin/env bash
|
2 | #
|
3 | # Manual setup
|
4 | #
|
5 | # Usage:
|
6 | # soil/admin.sh <function name>
|
7 |
|
8 | set -o nounset
|
9 | set -o pipefail
|
10 | set -o errexit
|
11 |
|
12 | keygen() {
|
13 | local comment=${1:-oils github}
|
14 | local file=${2:-rsa_oils_github}
|
15 | ssh-keygen -t rsa -b 4096 -C "$comment" -f $file
|
16 | }
|
17 |
|
18 | enable-fast-subset() {
|
19 | git mv .github/workflows/all-builds.yml{,_DISABLED}
|
20 | git mv .github/workflows/fast-subset.yml{_DISABLED,}
|
21 | }
|
22 |
|
23 | disable-fast-subset() {
|
24 | git mv .github/workflows/all-builds.yml{_DISABLED,}
|
25 | git mv .github/workflows/fast-subset.yml{,_DISABLED}
|
26 | }
|
27 |
|
28 | "$@"
|