From 9645c723463c8823e68e61eab738091e80dac347 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 29 Oct 2020 00:24:34 +0000 Subject: [PATCH] Add `app` command for DDEV --- .ddev/commands/web/app | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 .ddev/commands/web/app diff --git a/.ddev/commands/web/app b/.ddev/commands/web/app new file mode 100755 index 0000000..4fa5e1f --- /dev/null +++ b/.ddev/commands/web/app @@ -0,0 +1,22 @@ +#!/usr/bin/env bash + +## Description: Helper commands for the for theme +## Usage: app install|refresh + +set -e + +if [ $# -eq 0 ] ; then + echo 'No arguments entered.' + exit 1 +fi + +case $1 in + install|refresh) + drush site:install -y --account-pass=admin123 --existing-config + drush user:login + ;; + + *) + echo "Invalid argument: $1" + ;; +esac