Jaymon / captain

command line python scripts for humans
MIT License
13 stars 1 forks source link

Have Command wrap output and input method? #67

Closed Jaymon closed 1 year ago

Jaymon commented 3 years ago

Turns out, I find it annoying to do:

self.output.out("foo")

and it would be nice to shorten this:

self.out("foo")

I think I might be able to make this work by adding a __getattr__ method that would check self.output and self.input before failing with an attribute error