Add minimal __wp_cli type
This commit is contained in:
parent
b09138937f
commit
1afe5837de
3 changed files with 18 additions and 0 deletions
7
type/__wp_cli/gencode-remote
Normal file
7
type/__wp_cli/gencode-remote
Normal file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
cat << EOF
|
||||
curl https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -o wp-cli.phar
|
||||
chmod +x wp-cli.phar
|
||||
mv wp-cli.phar /usr/local/bin/wp
|
||||
EOF
|
11
type/__wp_cli/manifest
Normal file
11
type/__wp_cli/manifest
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
os=$(cat "${__global:?}/explorer/os")
|
||||
if [ "$os" != "alpine" ]; then
|
||||
echo "This type is expected to run on Alpine Linux, not $os. Exiting." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
for pkg in curl php7 php7-phar less; do
|
||||
__package $pkg
|
||||
done
|
0
type/__wp_cli/singleton
Normal file
0
type/__wp_cli/singleton
Normal file
Reference in a new issue