aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xggoto16
1 files changed, 10 insertions, 6 deletions
diff --git a/ggoto b/ggoto
index ebd6410..ca9ac98 100755
--- a/ggoto
+++ b/ggoto
@@ -53,6 +53,7 @@ def parse_args(argv):
'force': False,
'help': False,
'verbose': False,
+ 'quick': False,
}
for i, arg in enumerate(argv):
@@ -62,6 +63,8 @@ def parse_args(argv):
rv['help'] = True
elif arg == '-v':
rv['verbose'] = True
+ elif arg == '-q':
+ rv['quick'] = True
elif 'ref' not in rv:
rv['ref'] = arg
else:
@@ -177,10 +180,11 @@ if __name__ == '__main__':
exec(['git', 'submodule', 'update', '--init', '--recursive'])
- if needs_npm_install(file_states):
- exec(['npm', 'i'])
+ if not args['quick']:
+ if needs_npm_install(file_states):
+ exec(['npm', 'i'])
- if needs_composer_install(file_states):
- exec(['composer', '--no-interaction', '--ignore-platform-reqs', 'install'])
- elif os.path.isfile('composer.json'):
- exec(['composer', '--no-interaction', '--ignore-platform-reqs', 'dumpautoload'])
+ if needs_composer_install(file_states):
+ exec(['composer', '--no-interaction', '--ignore-platform-reqs', 'install'])
+ elif os.path.isfile('composer.json'):
+ exec(['composer', '--no-interaction', '--ignore-platform-reqs', 'dumpautoload'])