fix: fjern duplikat tui_command-funksjon i server.py
This commit is contained in:
parent
56e1f61753
commit
bc8eb70c16
|
|
@ -271,14 +271,6 @@ async def get_telemetry(p): return await _opax_get("/telemetry/history")
|
||||||
async def run_terminal(p):
|
async def run_terminal(p):
|
||||||
return await _opax_post("/terminal/exec", {"cmd": p.get("command", p.get("cmd", "help"))})
|
return await _opax_post("/terminal/exec", {"cmd": p.get("command", p.get("cmd", "help"))})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
async def tui_command(p):
|
|
||||||
"""Kjør én sekvensiert shell-kommando via TUI-broen og returner stdout/stderr/exit_code."""
|
|
||||||
return await _opax_post("/tui-command", {
|
|
||||||
"command": p.get("command", ""),
|
|
||||||
"timeout": p.get("timeout", 30),
|
|
||||||
})
|
|
||||||
async def list_commits(p):
|
async def list_commits(p):
|
||||||
return await _gitea_get(f"/repos/{p.get('repo', GITEA_REPO)}/commits?limit={p.get('limit', 10)}")
|
return await _gitea_get(f"/repos/{p.get('repo', GITEA_REPO)}/commits?limit={p.get('limit', 10)}")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user