commander_ui 3.0.0
commander_ui: ^3.0.0 copied to clipboard
Commander is a Dart library for creating user interfaces within the terminal.
3.0.0 #
Breaking — legacy inline API removed.
- Remove
Commanderclass and the legacy components (ask,checkbox,number,screen,select,swap,table,task) underlib/src/application/andlib/src/domains/. - Remove
package:commander_ui/commander_ui.dartandpackage:commander_ui/inline.dartentries. - Add
InlineCommander(inpackage:commander_ui/prompt.dart), a same-DX replacement built entirely on the TUI runtime:- Interactive:
ask,password,number,select,multiSelect,confirm,task. - Status helpers:
success,info,warn,error.
- Interactive:
- Add
PromptCancelledException, thrown when the user aborts a prompt with Ctrl-C.
Migration: replace final c = Commander() with final c = InlineCommander() and import package:commander_ui/prompt.dart. swap becomes confirm; checkbox becomes multiSelect; task's step manager is replaced by task(description, work) which awaits an arbitrary future.
2.4.0 #
- Implement
numbercomponent
2.3.0 #
- Implement theming components
- Add
AskThemeproperty inaskcomponent - Add
SelectThemeproperty inselectcomponent - Add
CheckboxThemeproperty incheckboxcomponent - Add
TaskThemeproperty intaskcomponent - Add
SwapThemeproperty inswapcomponent
- Add
- Remove useless
messageproperty in task component - Implement validators
notEmpty: Check if the value is not emptyempty: Check if the value is emptyemail: Check if the value is an emailbetween: Check if the value is between two valueslowerThan: Check if the value is lower than a valuegreaterThan: Check if the value is greater than a valueminLength: Check if the value length is greater than a valuemaxLength: Check if the value length is lower than a valueequals: Check if the value is equals to a value
2.2.4 #
- Make
taskcomponent as windows compatible - Change default placeholder for
swapcomponent in example - Remove "Tape to search" in
checkboxcomponent - Reset cursor position in enter
screencomponent
2.2.3 #
- Add missing properties
selectin select commander entry - Fix multiple behaviour instead of single behaviour in
checkboxcomponent - Enhance
infologger method
2.2.2 #
- Remove
createSpacemethod inaskcomponent
2.2.1 #
- The ask component disappeared after the validation stage
- Calling
createSpacemethod in all rendering cases foraskcomponent - Remove missing
printstatement inreadKeyfunction
2.2.0 #
- Add
selectdisplay handler - Fix bad FutureOr execution
2.1.0 #
- Add missing exports
- Change
askreturn type for an generic to allow nullable value
2.0.0 #
- Rework the whole library
- Change
inputtoaskcomponent - Change
delayedtotaskcomponent - Implement
swapcomponent - Implement logger methods
1.8.0 #
- Hide internal component methods
- Implement
onExitproperty on components
1.7.0CHANGELOG.md #
- Implement
alternative screencomponent - Add
Tablecomponent in public export
1.6.0 #
- Add
Tablecomponent
1.5.1 #
- Fix bad selected value when searching in
selectcomponent - Fix hidden cursor on exit in
inputcomponent
1.5.0 #
- Add
defaultValueproperty oninputcomponent
1.4.1 #
- Add
maxproperty oncheckboxcomponent - Fix displayed value on
checkboxwhen user submit component
1.4.0 #
- Add
hiddenproperty oninputcomponent - Implement
checkboxcomponent
1.3.0 #
- Add select max result into configurable option
- Add delayed component into readme
- Add progress component into readme
1.2.0 #
- Implement switch component
- Enhance methods documentation
1.1.0 #
- Implement password secure
- Restore cursor after component result
1.0.0 #
- Initial version.