import subprocess import click @click.command() @click.option('-d', '--detach', is_flag=True) def cli(detach): """ Start all services. """ cmd = 'honcho start' if not detach: return subprocess.call(cmd, shell=True) subprocess.Popen(cmd + ' -q docker,web,assets', shell=True)