mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-12-27 10:33:56 +08:00
[dev] Make help message better on deploy-it
This commit is contained in:
parent
9a7ce16616
commit
e9be7168bc
1 changed files with 6 additions and 3 deletions
|
@ -1,15 +1,18 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
#
|
#
|
||||||
# deploy-it is the script we use to deploy changes to our N1 backend systems.
|
# deploy-it is the script we use to deploy changes to our Nylas Mail backend systems.
|
||||||
# it tags releases automatically and helps prevent obvious mistakes like
|
# it tags releases automatically and helps prevent obvious mistakes like
|
||||||
# deploying a non-production branch to our prod infra.
|
# deploying a non-production branch to our prod infra.
|
||||||
import sys
|
import sys
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
if len(sys.argv) != 2 or sys.argv[1] in ('-h', '--help'):
|
if len(sys.argv) != 2 or sys.argv[1] in ('-h', '--help'):
|
||||||
print "deploy-it is the script we use to deploy changes to our N1 backend systems."
|
print "deploy-it is the script we use to deploy changes to our Nylas Mail backend systems."
|
||||||
print "usage: deploy-it environment"
|
print
|
||||||
|
print "usage: ./deploy-it environment"
|
||||||
|
print
|
||||||
|
print "The currently checked out commit will be deployed!"
|
||||||
sys.exit(-1)
|
sys.exit(-1)
|
||||||
|
|
||||||
environment = sys.argv[1]
|
environment = sys.argv[1]
|
||||||
|
|
Loading…
Reference in a new issue