onepub-dev / dcli

An extensive library and tooling for building console/cli applications and scripts using the Dart programming language.
245 stars 26 forks source link

Terminal functions not exposed as top level functions #194

Closed weenzeel closed 2 years ago

weenzeel commented 2 years ago

According to the documentation terminal functions like clearLine should be available as top level functions.

But to use them one needs to create a local instance of the Terminal class.

bsutton commented 2 years ago

You are correct. Do you have an opinion on which should be changed?

The documentation or do we expose the methods as top level functions?

I think part of the reason I put them in a class was to reduce namespace pollution but this isn' actually that much of a problem for dart.

bsutton commented 2 years ago

I've updated the doco to indicate that these methods are found in the Terminal class.