CLI things that should be resources:
- global_timer
- start_time
- other timers
- metrics? (it'd be nice if they were resources, but I fear it might be slow because of double lookup for each op)
Problems with refactor:
- no way for full polymorphism
Tried with
StreamResource
enum: