mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-22 00:45:10 +00:00
feat(serve): add --quiet mode and developer dashboard API
Headless serve with plain stderr logging; /api/dashboard/* (status, sessions, jobs, logs, SSE/poll events) behind a separate serve.dashboard.key.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import atexit
|
||||
import logging
|
||||
import sys
|
||||
from datetime import datetime
|
||||
|
||||
import click
|
||||
@@ -52,6 +53,9 @@ def main(version: bool, debug: bool) -> None:
|
||||
|
||||
traceback.install(console=console, width=80, suppress=[click])
|
||||
|
||||
if "--quiet" in sys.argv[1:] or "-q" in sys.argv[1:]:
|
||||
return
|
||||
|
||||
console.print(
|
||||
Padding(
|
||||
Group(
|
||||
|
||||
Reference in New Issue
Block a user