Skip to content

Commit 9642403

Browse files
committed
chore: prepare deployment
1 parent 9540fac commit 9642403

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 2.2.4
2+
- Make `task` component as windows compatible
3+
- Change default placeholder for `swap` component in example
4+
- Remove "Tape to search" in `checkbox` component
5+
- Reset cursor position in enter `screen` component
6+
17
# 2.2.3
28
- Add missing properties `select` in select commander entry
39
- Fix multiple behaviour instead of single behaviour in `checkbox` component

lib/src/application/components/task.dart

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ final class StepManager with TerminalTools {
4040
int _loadingStep = 0;
4141
bool isInitialStep = true;
4242
final bool _colored;
43-
int _line_count = 0;
43+
int _lineCount = 0;
4444

4545
StepManager(this._terminal, this._colored);
4646

@@ -82,11 +82,11 @@ final class StepManager with TerminalTools {
8282
final buffer = StringBuffer();
8383

8484
if (Platform.isWindows) {
85-
_line_count += 1;
85+
_lineCount += 1;
8686
}
8787

8888
buffer.writeAnsiAll([
89-
CursorPosition.moveTo(_position!.$2 + _line_count, _position!.$1),
89+
CursorPosition.moveTo(_position!.$2 + _lineCount, _position!.$1),
9090
SetStyles(Style.foreground(Color.green)),
9191
Print('✔ '),
9292
if (!_colored) SetStyles.reset,
@@ -102,11 +102,11 @@ final class StepManager with TerminalTools {
102102
final buffer = StringBuffer();
103103

104104
if (Platform.isWindows) {
105-
_line_count += 1;
105+
_lineCount += 1;
106106
}
107107

108108
buffer.writeAnsiAll([
109-
CursorPosition.moveTo(_position!.$2 + _line_count, _position!.$1),
109+
CursorPosition.moveTo(_position!.$2 + _lineCount, _position!.$1),
110110
SetStyles(Style.foreground(Color.yellow)),
111111
Print('⚠ '),
112112
if (!_colored) SetStyles.reset,
@@ -122,11 +122,11 @@ final class StepManager with TerminalTools {
122122
final buffer = StringBuffer();
123123

124124
if (Platform.isWindows) {
125-
_line_count += 1;
125+
_lineCount += 1;
126126
}
127127

128128
buffer.writeAnsiAll([
129-
CursorPosition.moveTo(_position!.$2 + _line_count, _position!.$1),
129+
CursorPosition.moveTo(_position!.$2 + _lineCount, _position!.$1),
130130
SetStyles(Style.foreground(Color.red)),
131131
Print('✘ '),
132132
if (!_colored) SetStyles.reset,

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: commander_ui
22
description: Commander is a Dart library for creating user interfaces within the terminal.
3-
version: 2.2.3
3+
version: 2.2.4
44
repository: https://github.com/LeadcodeDev/commander
55

66
topics:

0 commit comments

Comments
 (0)