Added simple implementation of the pre-checker
[mdk.git] / extra / bash_completion
index 4ee74ca..d4e96df 100644 (file)
@@ -49,7 +49,7 @@ function _mdk() {
     if [[ "${COMP_CWORD}" == 1 ]]; then
         # List the commands and aliases.
         # Ignoring these commands on purpose: init
-        OPTS="alias backport backup behat config create css doctor fix info install js phpunit plugin purge pull push rebase remove run tracker uninstall update upgrade"
+        OPTS="alias backport backup behat config create css doctor fix info install js phpunit plugin precheck purge pull push rebase remove run tracker uninstall update upgrade"
         OPTS="$OPTS $($BIN alias list 2> /dev/null | cut -d ':' -f 1)"
     else
         # List of options according to the command.
@@ -176,6 +176,9 @@ function _mdk() {
                     OPTS="$OPTS $(_list_instances)"
                 fi
                 ;;
+            precheck)
+                OPTS="--branch --push"
+                ;;
             purge)
                 OPTS="--all --integration --stable --manual"
                 if [[ "$CUR" != -* ]]; then