misc
This commit is contained in:
@ -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])
|
||||
|
Reference in New Issue
Block a user