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