add Logger.isVerbose; rev version
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f9b6c00..c5d12d6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,8 +1,9 @@
# Changelog
-## unreleased
+## 0.1.1
- Updated to the output for indeterminate progress
+- Exposed a `Logger.isVerbose` getter
## 0.1.0
diff --git a/lib/cli_logging.dart b/lib/cli_logging.dart
index 66e51aa..2da62ca 100644
--- a/lib/cli_logging.dart
+++ b/lib/cli_logging.dart
@@ -62,6 +62,8 @@
Ansi get ansi;
+ bool get isVerbose;
+
/// Print an error message.
void stderr(String message);
@@ -102,6 +104,8 @@
ansi ??= new Ansi(Ansi.terminalSupportsAnsi);
}
+ bool get isVerbose => false;
+
Progress _currentProgress;
void stderr(String message) {
@@ -230,6 +234,8 @@
_timer = new Stopwatch()..start();
}
+ bool get isVerbose => true;
+
void stderr(String message) {
flush();
_previousErr = '${ansi.red}$message${ansi.none}';
diff --git a/pubspec.yaml b/pubspec.yaml
index ccd17b5..baead10 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,5 +1,5 @@
name: cli_util
-version: 0.1.0
+version: 0.1.1
author: Dart Team <misc@dartlang.org>
description: A library to help in building Dart command-line apps.
homepage: https://github.com/dart-lang/cli_util