This PR is the preparation work to support the parameter injection scenario.
Update the prediction to support empty-string input, and enable prediction fresh into the ReadLine call, before user pressing any keystroke.
Update ForceRender to be able to cancel rendering when it's okay to do so.
Update the list view to support smaller terminal width (MinWindowWidth = 30), and stop rendering the source part in list items when the terminal width is < 50.
Fix the prompt when user press Ctrl+c within ReadLine call.
Add the /replace to validate the changes for the parameter injection scenario. This command is temporary and will be replaced later.
I will provide a utility API to assist the argument replacement, then an agent can decide if it want to expose a command to support the argument replacement. The az-cli agent will expose such a command, probably named as /edit.
PR Summary
This PR is the preparation work to support the parameter injection scenario.
ReadLine
call, before user pressing any keystroke.ForceRender
to be able to cancel rendering when it's okay to do so.MinWindowWidth = 30
), and stop rendering the source part in list items when the terminal width is< 50
.ReadLine
call./replace
to validate the changes for the parameter injection scenario. This command is temporary and will be replaced later.az-cli
agent will expose such a command, probably named as/edit
.