Should we add the ability store args/kwargs (like a partial) in an Action?
action1 = Action(id="cmd_id", title="title1", callback=cb)
action2 = Action(id="cmd_id2", title="title2", callback=cb, kwargs={"a": 1})
or should the callback just be the partial. Need to think about pros cons.
first thought: the "pro" of just using callback=partial(cb, a=1) is that it's familiar regular python. The "con" is that it (currently) would require us to create a new command id for every partial variant. Maybe that's not a big deal
Should we add the ability store args/kwargs (like a partial) in an Action?
or should the callback just be the
partial. Need to think about pros cons.first thought: the "pro" of just using
callback=partial(cb, a=1)is that it's familiar regular python. The "con" is that it (currently) would require us to create a new command id for every partial variant. Maybe that's not a big deal