libtmux icon indicating copy to clipboard operation
libtmux copied to clipboard

Dataclass: API updates

Open tony opened this issue 2 years ago • 0 comments

server = Server.new()
server = Server.connect()

@dataclasses.dataclass
class Server:
    @classmethod
    def new():
       pass

    @classmethod
    def connect(socket='')
       pass

   session = '' # Find a way to have session be Session with `server` automatically added
   # https://docs.python.org/3/library/functools.html#functools.partialmethod 
   # session.create
   # session.find
   # session.find_or_create
Session.create(server=server)

# let user see supported formatters
SUPPORTED_FORMATTERS = []
Window.create(session_id='')
Window.find(target='')
Window.find_or_create(name='', defaults={})

tony avatar Sep 12 '22 01:09 tony