OILS / soil / admin.sh View on Github | oilshell.org

28 lines, 16 significant
1#!/usr/bin/env bash
2#
3# Manual setup
4#
5# Usage:
6# soil/admin.sh <function name>
7
8set -o nounset
9set -o pipefail
10set -o errexit
11
12keygen() {
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
18enable-fast-subset() {
19 git mv .github/workflows/all-builds.yml{,_DISABLED}
20 git mv .github/workflows/fast-subset.yml{_DISABLED,}
21}
22
23disable-fast-subset() {
24 git mv .github/workflows/all-builds.yml{_DISABLED,}
25 git mv .github/workflows/fast-subset.yml{,_DISABLED}
26}
27
28"$@"