mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
fix --noninteractive
This commit is contained in:
@@ -60,7 +60,7 @@ def cli():
|
|||||||
@cli.command()
|
@cli.command()
|
||||||
@common_options
|
@common_options
|
||||||
def http_host_static(hostname, user, port, noninteractive):
|
def http_host_static(hostname, user, port, noninteractive):
|
||||||
if not noninteractive and click.confirm(f'Run script on {hostname}?'):
|
if not noninteractive and not click.confirm(f'Run script on {hostname}?'):
|
||||||
return
|
return
|
||||||
|
|
||||||
c = get_connection(hostname, user, port)
|
c = get_connection(hostname, user, port)
|
||||||
@@ -76,7 +76,7 @@ def http_host_static(hostname, user, port, noninteractive):
|
|||||||
@cli.command()
|
@cli.command()
|
||||||
@common_options
|
@common_options
|
||||||
def http_host_autoupdate(hostname, user, port, noninteractive):
|
def http_host_autoupdate(hostname, user, port, noninteractive):
|
||||||
if not noninteractive and click.confirm(f'Run script on {hostname}?'):
|
if not noninteractive and not click.confirm(f'Run script on {hostname}?'):
|
||||||
return
|
return
|
||||||
|
|
||||||
c = get_connection(hostname, user, port)
|
c = get_connection(hostname, user, port)
|
||||||
@@ -97,7 +97,7 @@ def http_host_autoupdate(hostname, user, port, noninteractive):
|
|||||||
@common_options
|
@common_options
|
||||||
@click.option('--cron', is_flag=True, help='Enable cron task')
|
@click.option('--cron', is_flag=True, help='Enable cron task')
|
||||||
def tile_gen(hostname, user, port, cron, noninteractive):
|
def tile_gen(hostname, user, port, cron, noninteractive):
|
||||||
if not noninteractive and click.confirm(f'Run script on {hostname}?'):
|
if not noninteractive and not click.confirm(f'Run script on {hostname}?'):
|
||||||
return
|
return
|
||||||
|
|
||||||
c = get_connection(hostname, user, port)
|
c = get_connection(hostname, user, port)
|
||||||
@@ -109,7 +109,7 @@ def tile_gen(hostname, user, port, cron, noninteractive):
|
|||||||
@cli.command()
|
@cli.command()
|
||||||
@common_options
|
@common_options
|
||||||
def ledns(hostname, user, port, noninteractive):
|
def ledns(hostname, user, port, noninteractive):
|
||||||
if not noninteractive and click.confirm(f'Run script on {hostname}?'):
|
if not noninteractive and not click.confirm(f'Run script on {hostname}?'):
|
||||||
return
|
return
|
||||||
|
|
||||||
c = get_connection(hostname, user, port)
|
c = get_connection(hostname, user, port)
|
||||||
@@ -120,7 +120,7 @@ def ledns(hostname, user, port, noninteractive):
|
|||||||
@cli.command()
|
@cli.command()
|
||||||
@common_options
|
@common_options
|
||||||
def loadbalancer(hostname, user, port, noninteractive):
|
def loadbalancer(hostname, user, port, noninteractive):
|
||||||
if not noninteractive and click.confirm(f'Run script on {hostname}?'):
|
if not noninteractive and not click.confirm(f'Run script on {hostname}?'):
|
||||||
return
|
return
|
||||||
|
|
||||||
c = get_connection(hostname, user, port)
|
c = get_connection(hostname, user, port)
|
||||||
|
|||||||
Reference in New Issue
Block a user