Created
October 24, 2016 19:24
-
-
Save discordier/c1c2740337b072afe04e404f00741994 to your computer and use it in GitHub Desktop.
cmd sf: Search for symfony console app in the current dir (2.X or 3.X) and run whichever has been found
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sf() { | |
if [ -f ./app/console ]; then | |
./app/console $@ | |
return $? | |
fi; | |
if [ -f ./bin/console ]; then | |
./bin/console $@ | |
return $? | |
fi; | |
echo "found neither ./app/console nor ./bin/console"; | |
return 1; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment