dfdfdf
This commit is contained in:
29
cmdnat/matrix.py
Normal file
29
cmdnat/matrix.py
Normal file
@@ -0,0 +1,29 @@
|
||||
from typing import Any, Dict, Sequence, List
|
||||
import sys
|
||||
from cmdlet._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
|
||||
)
|
||||
Reference in New Issue
Block a user