aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRagnis Armus <ragnis@armus.ee>2020-08-08 15:14:21 +0300
committerRagnis Armus <ragnis@armus.ee>2020-08-08 15:14:21 +0300
commitccb3c116680c44fe836d895699adc7f340cef592 (patch)
tree72166298f6a2dad4fbabda4ae4473bd06e878c09
parentd292c92e11ae8af4e83f5e4614db6e1a16394f96 (diff)
Implement quick modeHEADmaster
-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'])