This commit is contained in:
2022-10-25 23:06:10 +02:00
parent 6b815a6a68
commit 78addafe18
9 changed files with 30 additions and 12 deletions

View File

@ -1,7 +1,6 @@
#!/usr/bin/python
import os
import sys
import json
apps = ['core', 'api', 'www']
commands = {
@ -12,7 +11,7 @@ commands = {
def print_commands():
print('Commandes disponibles: ', [c for c in commands])
print('Available commands:', [c for c in commands])
if __name__ == '__main__':
@ -22,10 +21,11 @@ if __name__ == '__main__':
cmd = sys.argv[1]
if cmd not in commands:
print('Commande \'%s\' non disponible' % cmd)
print('Command \'%s\' not available' % cmd)
print_commands()
exit()
print('Running \'%s\' on %d apps: %s' % (commands[cmd], len(apps), apps))
for app in apps:
os.chdir(app)
os.system(commands[cmd])