Jaymon / captain

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

self.output __call__ #63

Closed Jaymon closed 1 year ago

Jaymon commented 3 years ago

The Output class should have a __call__() method that just wraps out() so you can do:

self.output("some {} format {} string", 1, 2)

which would be equivalent to:

self.output.out("some {} format {} string", 1, 2)