feat: add NAS management UI and operation history
This commit is contained in:
@@ -7,6 +7,7 @@ from .exact import exact_dedupe
|
||||
from .l2 import acoustic_dedupe
|
||||
from .scanner import scan
|
||||
from .watcher import watch
|
||||
from .web import serve
|
||||
|
||||
|
||||
def _db_path(root: Path, explicit: Path | None) -> Path:
|
||||
@@ -28,12 +29,20 @@ def main() -> None:
|
||||
if name != "scan":
|
||||
sp.add_argument("--dry-run", action="store_true")
|
||||
|
||||
srv = sub.add_parser("server")
|
||||
srv.add_argument("--host", default="0.0.0.0")
|
||||
srv.add_argument("--port", type=int, default=8080)
|
||||
|
||||
wp = sub.add_parser("watch")
|
||||
wp.add_argument("root", type=Path)
|
||||
wp.add_argument("--db", type=Path, default=None)
|
||||
wp.add_argument("--l2", action="store_true", help="enable acoustic matching")
|
||||
|
||||
args = parser.parse_args()
|
||||
if args.cmd == "server":
|
||||
serve(args.host, args.port)
|
||||
return
|
||||
|
||||
db = _db_path(args.root, args.db)
|
||||
|
||||
if args.cmd == "watch":
|
||||
|
||||
Reference in New Issue
Block a user