fix: reparer push_file + tui_command indenteringsfeil i server.py
This commit is contained in:
parent
638f69d335
commit
e5fa099072
|
|
@ -271,6 +271,10 @@ async def get_telemetry(p): return await _opax_get("/telemetry/history")
|
|||
async def run_terminal(p):
|
||||
return await _opax_post("/terminal/exec", {"cmd": p.get("command", p.get("cmd", "help"))})
|
||||
|
||||
async def tui_command(p):
|
||||
"""Kjør shell-kommando via TUI-bro."""
|
||||
return await _opax_post("/tui-command", p)
|
||||
|
||||
async def list_commits(p):
|
||||
return await _gitea_get(f"/repos/{p.get('repo', GITEA_REPO)}/commits?limit={p.get('limit', 10)}")
|
||||
|
||||
|
|
@ -284,10 +288,6 @@ async def create_issue(p):
|
|||
return await _gitea_post(f"/repos/{p.get('repo', GITEA_REPO)}/issues", {"title": p.get("title"), "body": p.get("body", "")})
|
||||
|
||||
async def push_file(p):
|
||||
|
||||
async def tui_command(p):
|
||||
"""Kjør én shell-kommando via /tui-command og returner stdout/stderr/exit_code."""
|
||||
return await _opax_post("/tui-command", p)
|
||||
repo = p.get("repo", GITEA_REPO)
|
||||
path = p.get("path")
|
||||
content = base64.b64encode(p.get("content", "").encode()).decode()
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user