introduce execute_stdout
`execute_stdout` does not return the output of the process. Instead it outputs directly to current stdout (in real-time - to see what is `npm` doing now)
This commit is contained in:
parent
743e8331b5
commit
a5e1d8c97f
1 changed files with 12 additions and 0 deletions
|
@ -144,6 +144,18 @@ def execute(argv):
|
||||||
raise e
|
raise e
|
||||||
|
|
||||||
|
|
||||||
|
def execute_stdout(argv):
|
||||||
|
if verbose_mode:
|
||||||
|
print ' '.join(argv)
|
||||||
|
try:
|
||||||
|
subprocess.check_call(argv)
|
||||||
|
except subprocess.CalledProcessError as e:
|
||||||
|
print e.output
|
||||||
|
raise e
|
||||||
|
else:
|
||||||
|
return execute(argv)
|
||||||
|
|
||||||
|
|
||||||
def get_atom_shell_version():
|
def get_atom_shell_version():
|
||||||
return subprocess.check_output(['git', 'describe', '--tags']).strip()
|
return subprocess.check_output(['git', 'describe', '--tags']).strip()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue