Replies: 3 comments 2 replies
-
What about exporting some specific functions from matrix_commander and moving CLI handling into
|
Beta Was this translation helpful? Give feedback.
-
Thanks @opk12 for raising the awareness for these issues. First question: Bullet 1 vs Bullet 3: Are there cases where the homeserver's verbatim output is not machine-readable output? In other words, if bullet 1 is taken care of, then bullet 3 is automatically resolved as well? |
Beta Was this translation helpful? Give feedback.
-
The pro of the matrix-nio API is that it mirrors the Client-Server spec'ed workflow. The con is that each user must learn the C-S spec and reimplement the same patterns. De facto, matrix-commander is a public repository of shared patterns / recipes around matrix-nio. It is even promoted as usage example in a dedicated section in the matrix-nio docs (link). But the CLI models the most common end-user use cases. I think about a mixed approach: when the spec advances (leaving m-c behind), the use-case is custom, the CLI does not exist, ... then I implement the parts of the spec of my interest, and leave everything else to m-c (reusing m-c as a simple wrapper around matrix-nio). I can safely intermix calling the m-c CLI, calling the m-c functions and classes, parsing the homeserver's output downloaded by m-c. That's why I used very abstract words The feature to send custom JSON events (already implemented) fits as part of this view. |
Beta Was this translation helpful? Give feedback.
-
What about a central place of discussion about the changes that involve at least these (what else?)
So this issue covers at least these (what else?)
Beta Was this translation helpful? Give feedback.
All reactions