tmux-python/libtmux

Options: Typed structures

tony opened this issue · 0 comments

tony commented

Can be dataclass.

  • ServerOption
  • SessionOption
  • WindowOption
  • PaneOption
  • Option = ServerOption + SessionOption + WindowOption + PaneOption

Consider pydantic, for its field's:

  • alias: for marshalling automatic-rename to automatic_rename
  • description: for documenting option purpose

See also