File tree Expand file tree Collapse file tree 4 files changed +7
-4
lines changed
lib/src/application/components Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Original file line number Diff line number Diff line change
1
+ # 2.2.0
2
+ - Add ` select ` display handler
3
+ - Fix bad FutureOr execution
4
+
1
5
## 2.1.0
2
6
- Add missing exports
3
7
- Change ` ask ` return type for an generic to allow nullable value
Original file line number Diff line number Diff line change @@ -158,5 +158,3 @@ final class Ask<T> with TerminalTools implements Component<Future<T>> {
158
158
_completer.complete (response as T );
159
159
}
160
160
}
161
-
162
-
Original file line number Diff line number Diff line change @@ -176,7 +176,8 @@ final class Select<T> with TerminalTools implements Component<Future<T>> {
176
176
SetStyles .reset,
177
177
Print (' $_message ' ),
178
178
SetStyles (Style .foreground (Color .brightBlack)),
179
- Print (_onDisplay? .call (_selectedOption as T ) ?? _selectedOption.toString ()),
179
+ Print (
180
+ _onDisplay? .call (_selectedOption as T ) ?? _selectedOption.toString ()),
180
181
SetStyles .reset,
181
182
AsciiControl .lineFeed,
182
183
]);
Original file line number Diff line number Diff line change 1
1
name : commander_ui
2
2
description : Commander is a Dart library for creating user interfaces within the terminal.
3
- version : 2.1 .0
3
+ version : 2.2 .0
4
4
repository : https://github.com/LeadcodeDev/commander
5
5
6
6
topics :
You can’t perform that action at this time.
0 commit comments