azriel91 / peace

Zero Stress Automation
https://peace.mk
Apache License 2.0
110 stars 1 forks source link

Type Parameter Revamp / Simplification #166

Closed azriel91 closed 8 months ago

azriel91 commented 9 months ago

Related to #161, we should consider simplifying the type parameters in CmdCtx, CmdCtxBuilder, Flow, etcetera.

Candidates for simplification:

Candidates

  1. An exploratory method for simplification is use one type parameter, with multiple associated types, and each associated type has different bounds.
  2. We might not want O as a type parameter, and instead hold a Box<dyn OutputWrite> that delegates to a list of OutputWrites for writing output to screen and logging.