21 lines
569 B
Python
21 lines
569 B
Python
import json
|
|
import subprocess
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
|
|
def config_path(base_dir: Path, app_name: str) -> Path:
|
|
raise NotImplementedError("Zwróć base_dir / app_name / 'config.yaml'")
|
|
|
|
|
|
def run_echo_safely(message: str) -> str:
|
|
_ = (subprocess, sys)
|
|
raise NotImplementedError(
|
|
"Uruchom bezpieczny subprocess (shell=False, timeout=5) i zwróć stdout.strip()"
|
|
)
|
|
|
|
|
|
def format_json_log(level: str, event: str, **fields: object) -> str:
|
|
_ = json
|
|
raise NotImplementedError("Zwróć JSON zawierający level, event oraz **fields")
|