def list():
for name, config in get_config()['tunnels'].items():
print name
# print {'name':name,
# 'proxy': config['proxy']['host'] if 'proxy' in config and 'host' in config['proxy'] else '',
# 'check': config['check'] if 'check' in config else '',
# 'depends':config['depends'] if 'depends' in config else ''}
# @cli.command()
# @click.argument('tunnel')
# def up(tunnel):
# try:
# if not supervisor_is_running():
# start()
#
# get_supervisor().startProcess(tunnel)
# except:
# traceback.print_exc()
# @cli.command('down')
# @click.argument('tunnel')
# def down(tunnel):
# if not supervisor_is_running():
# print('supervisor is not running')
#
# get_config(None)
# write_supervisor_conf()
#
# get_supervisor().stopProcess(tunnel)
# # continue stopping recursively
# stop_dependent_tunnels(tunnel)
#
# # get_supervisor().stopProcess(tunnel)
no_you_talk_to_the_hand.py 文件源码
python
阅读 23
收藏 0
点赞 0
评论 0
评论列表
文章目录