style: fix lint errors (line length, import sort)
This commit is contained in:
@@ -126,7 +126,10 @@ def run_info(args: argparse.Namespace) -> int:
|
||||
if service.tcp_port is not None:
|
||||
# Raw-TCP reach is internal-only (public TCP is rejected at load, see
|
||||
# SystemdDeployment._validate_reach), so there's no "public" state here.
|
||||
print(f" {BOLD}tcp{RESET}: {name}.<gateway.domain>:{service.tcp_port} (internal)")
|
||||
print(
|
||||
f" {BOLD}tcp{RESET}: "
|
||||
f"{name}.<gateway.domain>:{service.tcp_port} (internal)"
|
||||
)
|
||||
if service.manage and service.manage.systemd:
|
||||
sd = service.manage.systemd
|
||||
print(f" {BOLD}systemd{RESET}: enabled={sd.enable}, restart={sd.restart.value}")
|
||||
|
||||
@@ -13,9 +13,10 @@ import argparse
|
||||
import hashlib
|
||||
from datetime import datetime, timezone
|
||||
|
||||
from castle_cli.config import load_config
|
||||
from castle_core.tls import _tls_of, reconcile_tls, tls_dir_for, wildcard_cert
|
||||
|
||||
from castle_cli.config import load_config
|
||||
|
||||
|
||||
def run_tls(args: argparse.Namespace) -> int:
|
||||
if getattr(args, "tls_command", None) == "status":
|
||||
|
||||
@@ -149,7 +149,10 @@ def _build_deployment_group(subparsers: argparse._SubParsersAction, kind: str) -
|
||||
def build_parser() -> argparse.ArgumentParser:
|
||||
parser = argparse.ArgumentParser(
|
||||
prog="castle",
|
||||
description="Castle platform CLI — programs, deployments (services, jobs, tools), and infrastructure",
|
||||
description=(
|
||||
"Castle platform CLI — programs, deployments "
|
||||
"(services, jobs, tools), and infrastructure"
|
||||
),
|
||||
)
|
||||
parser.add_argument("--version", action="version", version=f"castle {__version__}")
|
||||
subparsers = parser.add_subparsers(dest="command", help="Available commands")
|
||||
|
||||
Reference in New Issue
Block a user