Tyrrrz / CliFx

Class-first framework for building command-line interfaces
MIT License
1.5k stars 61 forks source link

Create abstractions package #21

Closed thegreatco closed 4 years ago

thegreatco commented 5 years ago

Create a package with the interfaces (such as IConsole) to allow for custom implementations without importing the whole library.

Use Case

For referencing the abstractions package in a common library that may be used across CLI, UI, Web applications. For example, a Logger that can take an IConsole as a parameter and wrap the output. Allowing for methods like Error(), Information() etc, that can add extra information (like timestamps, colors, etc).

Suggested Implementation

Move the following interfaces to the package

It may be helpful to include all of the core interfaces in here, however I leave that up to you.

Tyrrrz commented 5 years ago

I think, given that CliFx targets .NET Standard 2.0, it's fine if you just include the full library and only use abstractions in your project.

Tyrrrz commented 4 years ago

Closing as won't fix because I don't see enough value on this and want to concentrate my efforts.