Simplified startup box unix socket formatting.
This commit is contained in:
+1
-1
@@ -28,7 +28,7 @@ def create_banner():
|
|||||||
def create_startup_box(*, folder, url, unix=None, dev=False, paskia_url=None):
|
def create_startup_box(*, folder, url, unix=None, dev=False, paskia_url=None):
|
||||||
"""Create a framed startup box with server information."""
|
"""Create a framed startup box with server information."""
|
||||||
title = f"Cista {cista.__version__}"
|
title = f"Cista {cista.__version__}"
|
||||||
listen = f"{url} ({unix})" if unix else url
|
listen = unix if unix else url
|
||||||
location = f"{folder} @ {listen}"
|
location = f"{folder} @ {listen}"
|
||||||
lines = [title, location]
|
lines = [title, location]
|
||||||
if paskia_url:
|
if paskia_url:
|
||||||
|
|||||||
Reference in New Issue
Block a user