bin: documentation fixes
This commit is contained in:
parent
4c86b88a61
commit
9496eb520d
|
@ -19,7 +19,9 @@ stack() {
|
||||||
;;
|
;;
|
||||||
(sso) shift
|
(sso) shift
|
||||||
builtin cd "$STACKSPIN"
|
builtin cd "$STACKSPIN"
|
||||||
kubectl exec -n stackspin $(kubectl get pods -A | grep single-sign-on-login | awk '{print $2}') -- flask "$@";;
|
-- flask "$@";;
|
||||||
|
kubectl exec -n stackspin-apps nc-nextcloud-56bc649d78-q7snw -it -- su www-data -s /bin/bash -c "php occ fi
|
||||||
|
les:scan --all"
|
||||||
(user)
|
(user)
|
||||||
if test "$2" = "init"
|
if test "$2" = "init"
|
||||||
then mail="$3"
|
then mail="$3"
|
||||||
|
@ -27,8 +29,11 @@ stack() {
|
||||||
stack user create "$mail"
|
stack user create "$mail"
|
||||||
stack user update "$mail" name "$*"
|
stack user update "$mail" name "$*"
|
||||||
echo "Initialized user '$*' with email '$mail'"
|
echo "Initialized user '$*' with email '$mail'"
|
||||||
else kubectl exec -n stackspin $(kubectl get pods -A | grep single-sign-on-login | awk '{print $2}') -- flask "$@"
|
else "$0" pod single-sign-on -- flask "$@"
|
||||||
fi;;
|
fi;;
|
||||||
|
(pod) shift
|
||||||
|
kubectl exec -n stackspin \
|
||||||
|
$(kubectl get pods -A | grep "$1-" | awk '{print $2}');;
|
||||||
(*) builtin cd "$STACKSPIN"
|
(*) builtin cd "$STACKSPIN"
|
||||||
if test $# -gt 1 -a "$1" = install
|
if test $# -gt 1 -a "$1" = install
|
||||||
then shift && "./install/install-$1.sh" || ./install/install-app.sh "$@"
|
then shift && "./install/install-$1.sh" || ./install/install-app.sh "$@"
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
# - repo name (omit if setting upstream in existing repo)
|
# - repo name (omit if setting upstream in existing repo)
|
||||||
# - upstream user
|
# - upstream user
|
||||||
# - own user
|
# - own user
|
||||||
# - url
|
# - host
|
||||||
# - target directory name (and further arguments to clone)
|
# - target directory name (and further arguments to clone)
|
||||||
# In an existing repo, first arg is omitted
|
# In an existing repo, first arg is omitted
|
||||||
test $# -eq 0 && echo "Usage: $0 [repo] [upstream owner] [own user] [url]" && exit 2
|
test $# -eq 0 && echo "Usage: $0 [repo] [upstream owner] [own user] [url]" && exit 2
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh -e
|
||||||
# Clones from resolving the arguments and switches into the new directory
|
# Clones from resolving the arguments and switches into the new directory
|
||||||
# ARGS see git-repo
|
# ARGS see git-repo
|
||||||
set -e
|
|
||||||
remote=$(git-repo "$@")
|
remote=$(git-repo "$@")
|
||||||
echo "Cloning $remote"
|
echo "Cloning $remote"
|
||||||
git clone $remote ${@:4} --recurse-submodules
|
git clone $remote ${@:4} --recurse-submodules
|
||||||
|
|
|
@ -10,7 +10,7 @@ case $1 in
|
||||||
# need to install zsh-doc package for info pages
|
# need to install zsh-doc package for info pages
|
||||||
info --vi-keys $(test "$last" != zsh && echo "--index-search=$last") zsh ||
|
info --vi-keys $(test "$last" != zsh && echo "--index-search=$last") zsh ||
|
||||||
LESS="$LESS +/^ *$last *\\[" man zshall;;
|
LESS="$LESS +/^ *$last *\\[" man zshall;;
|
||||||
(gh|chordpro|bat|pdfjam|reflector|topgrade|r128gain|7z) unbuffer "$@" --help | $paginate;;
|
(gh|chordpro|bat|pdfjam|reflector|topgrade|r128gain|7z|kubectl) unbuffer "$@" --help | $paginate;;
|
||||||
(caddy|stretchly|go) "$1" help "${@:2}" | $paginate;;
|
(caddy|stretchly|go) "$1" help "${@:2}" | $paginate;;
|
||||||
(rails) { rails -H && rails --help; } | $paginate;;
|
(rails) { rails -H && rails --help; } | $paginate;;
|
||||||
(plantuml) unbuffer "$@" -help | $paginate;;
|
(plantuml) unbuffer "$@" -help | $paginate;;
|
||||||
|
|
|
@ -14,6 +14,7 @@ do
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
$elevate find "$f" -maxdepth $(expr 1 \& "$f" = "/" \| 5 \& $# \> 0 \| 4) -type d -empty -name .stfolder -exec rm -div {} \;
|
||||||
$elevate find "$f" -maxdepth $(expr 1 \& "$f" = "/" \| 5 \& $# \> 0 \| 3) -not -name .stfolder \( -type d -o -type f \) -a -empty -printf 'Removing empty %p\n' -delete
|
$elevate find "$f" -maxdepth $(expr 1 \& "$f" = "/" \| 5 \& $# \> 0 \| 3) -not -name .stfolder \( -type d -o -type f \) -a -empty -printf 'Removing empty %p\n' -delete
|
||||||
test $# -eq 0 && exit $?
|
test $# -eq 0 && exit $?
|
||||||
if test -e "$f"; then
|
if test -e "$f"; then
|
||||||
|
|
Loading…
Reference in New Issue