You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following up on this issue, this package provides a few different services:
String getSdkPath()
This was the original reason why this package was created. The impl. of this method has been dramatically simplified - from 40-50 lines of code down to 1 now:
I suspect that we don't need to re-home this method - that we can just mention that people can in-line this into their codebase.
applicationConfigHome
This was added more recently - it exposes some of the XDG_CONFIG_HOME standard. This can be re-homed into a 3rd party package (likely with more XDG_CONFIG_HOME functionality).
class Ansi
A simple ansi class. We would likely deprecate this and point people to package:io (and make sure that there weren't 1-2 methods that should be added to package:io in order to ease any migration to the package).
class Logger, class Progress
Classes that make it easy to write stdout for a cli tool. This includes writing to stdout and stderr, writing to a 'trace' level that user's could optionally enable (via something like a --verbose flag), and an indeterminate progress indicator. There is some coordination between the stdout output and the indeterminate progress output - so writing to stdout doesn't leave garbage characters behind on the cli.
This API is very much presentation focused - it's separate in intent from something like package:logging. This is the biggest question for me - where to host any replacement for this API? Does this match with package:io's intent - would that be a good home for it?
kevmoo
changed the title
Deprecate cli_logging -> ansi
Deprecate cli_util -> ansi
Feb 17, 2022
Trying to standardize on https://github.com/dart-lang/io/blob/master/lib/ansi.dart
The text was updated successfully, but these errors were encountered: