click.echo("{} The URL \"{}\" is unreachable.\n Check your network connection, and the URL and Secret of the endpoint.".format(click.style('Error:',fg='red',bold=True),url))
print()
time.sleep(1)
ifclick.confirm(click.style('Do you want to open the config file at {} with your default editor?'.format(user_config_path),fg="yellow"),abort=True):
print("ERROR: There was no config file found. Make sure it exists and is readable:")
new_config(user_config_path)
defnew_config(user_config_path:str):
click.echo("{} There was no config file found. Make sure it exists and is readable at either location:".format(click.style('Error:',fg='red',bold=True),click.style("Error:",fg='red',bold=True)))
print(" [0] {}".format(SERVER_PROPERTIES_FILE))
print(" [0] {}".format(SERVER_PROPERTIES_FILE))
print(" [1] {}".format(user_config_path))
print(" [1] {}".format(user_config_path))
print()
print()
print("For now the file just needs to contain three lines:")
print("For now the file just needs to contain three lines:")
@click.option('--endpoint','-e',multiple=True,help="Filter by one or more endpoints as named in the user configuration (e.g. [servername]). Order is respected.")
@click.option('--endpoint','-e',multiple=True,help="Filter by one or more endpoints as named in the user configuration (e.g. [servername]). Order is respected.")
@click.option('--watch','-w',help="Run repeatedly with the given interval in seconds",type=click.IntRange(2,2147483647,clamp=True))
@click.option('--watch','-w',help="Run repeatedly with the given interval in seconds",type=click.IntRange(2,2147483647,clamp=True))