Skip to content

Commit

Permalink
chore: prepare deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
LeadcodeDev committed Oct 29, 2024
1 parent 9540fac commit 9642403
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 2.2.4
- Make `task` component as windows compatible
- Change default placeholder for `swap` component in example
- Remove "Tape to search" in `checkbox` component
- Reset cursor position in enter `screen` component

# 2.2.3
- Add missing properties `select` in select commander entry
- Fix multiple behaviour instead of single behaviour in `checkbox` component
Expand Down
14 changes: 7 additions & 7 deletions lib/src/application/components/task.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ final class StepManager with TerminalTools {
int _loadingStep = 0;
bool isInitialStep = true;
final bool _colored;
int _line_count = 0;
int _lineCount = 0;

StepManager(this._terminal, this._colored);

Expand Down Expand Up @@ -82,11 +82,11 @@ final class StepManager with TerminalTools {
final buffer = StringBuffer();

if (Platform.isWindows) {
_line_count += 1;
_lineCount += 1;
}

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

if (Platform.isWindows) {
_line_count += 1;
_lineCount += 1;
}

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

if (Platform.isWindows) {
_line_count += 1;
_lineCount += 1;
}

buffer.writeAnsiAll([
CursorPosition.moveTo(_position!.$2 + _line_count, _position!.$1),
CursorPosition.moveTo(_position!.$2 + _lineCount, _position!.$1),
SetStyles(Style.foreground(Color.red)),
Print('✘ '),
if (!_colored) SetStyles.reset,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: commander_ui
description: Commander is a Dart library for creating user interfaces within the terminal.
version: 2.2.3
version: 2.2.4
repository: https://github.com/LeadcodeDev/commander

topics:
Expand Down

0 comments on commit 9642403

Please sign in to comment.