4 echo "Usage: ppg COMMAND [OPTIONS] [TARGET]"
6 echo "ppg commands are:"
8 cat <<\EOF |
sed -e 's/^/ /'
10 For development environments
12 init-devenv Prepares a development
/test environment
for commits
13 commit Commits though to git
14 schedule Schedule a commit
for merge to production
18 clone Clones and inits a client environment
19 init Prepares a client environment after a
"git clone"
20 pullapply Updates and applies config updates
21 apply Apply changes manually
26 PPG_EXEC_PATH
=$
( dirname $
(realpath
"${BASH_SOURCE[0]}" ) )
35 -v|
--v|
--ve|
--ver|
--vers|
--versi|
--versio|
--version)
36 echo "ppg version @@PPG_VERSION@@"
42 echo >&2 "ERROR: Unknown option $cmd"
47 if [[ -x "$PPG_EXEC_PATH/ppg-$cmd" ]]; then
48 exec "$PPG_EXEC_PATH/ppg-$cmd" "$@"
51 echo >&2 "ERROR: Unknown command $cmd"