Files
Medios-Macina/cmdnat/matrix.py

30 lines
966 B
Python
Raw Normal View History

2025-11-30 11:39:04 -08:00
from typing import Any, Dict, Sequence, List
import sys
2025-12-12 21:55:38 -08:00
from cmdlet._shared import Cmdlet, CmdletArg, parse_cmdlet_args
2025-12-11 19:04:02 -08:00
from SYS.logger import log, debug
2025-11-30 11:39:04 -08:00
from result_table import ResultTable
2025-12-11 12:47:30 -08:00
# REFACTOR: Commenting out Matrix import until provider refactor is complete
2025-11-30 11:39:04 -08:00
from config import save_config, load_config
import pipeline as ctx
def _run(result: Any, args: Sequence[str], config: Dict[str, Any]) -> int:
2025-12-11 12:47:30 -08:00
# REFACTOR: Matrix cmdlet temporarily disabled during storage provider refactor
log("⚠️ Matrix cmdlet is temporarily disabled during refactor", file=sys.stderr)
return 1
2025-11-30 11:39:04 -08:00
CMDLET = Cmdlet(
name=".matrix",
2025-12-11 12:47:30 -08:00
alias=["matrix", "rooms"],
2025-11-30 11:39:04 -08:00
summary="List and select default Matrix room",
usage=".matrix [selection]",
2025-12-11 12:47:30 -08:00
arg=[
2025-11-30 11:39:04 -08:00
CmdletArg(
name="selection",
type="string",
description="Index or ID of the room to set as default",
required=False
)
],
exec=_run
)