Closed magicant closed 3 months ago
The recent updates for yash-cli
and its dependencies (yash-prompt
and yash-syntax
) introduce enhancements and refinements. These include dependency updates, improved prompt handling in interactive mode, new context-handling methods in yash-syntax
, and better error message handling and context switching in parser lexing.
Files | Change Summary |
---|---|
yash-cli/CHANGELOG.md |
Version update to v0.1.0-beta.2, updated dependencies, and modified prepare_input function argument. |
yash-prompt/src/prompter.rs |
Added PS2 variable, updated print_prompt function, and added a test for PS2 . |
yash-syntax/CHANGELOG.md |
Added is_first_line method in Context and implementations for error messaging. |
yash-syntax/src/input.rs |
Enhanced Context struct with is_first_line field and new methods, updated Default implementation. |
yash-syntax/src/parser/lex/core.rs |
Added input_context method to LexerCore for handling input context changes. |
sequenceDiagram
participant User
participant yash-cli
participant yash-prompt
participant yash_env
Note right of User: Begins interaction
User->>yash-cli: Execute command
activate yash-cli
yash-cli->>yash-prompt: Get prompt (PS1/PS2)
activate yash-prompt
yash-prompt->>yash_env: Fetch variable (PS1/PS2)
yash_env-->>yash-prompt: Return variable value
deactivate yash-prompt
yash-cli-->>User: Display prompt
deactivate yash-cli
In
yash-cli
, the prompts do gleam,
WithPS2
to chase the dream.
Updates bring a brighter way,
AsEnv
andContext
lead the play.
Rusty upgrades, smoother shell,
In the world of code, we dwell. 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
This is part of #372.
When a command is continued to a next line, the interactive shell should issue a prompt with the
$PS2
variable instead of$PS1
.Summary by CodeRabbit
New Features
PS2
variable for continuation prompts.Dependency Updates
yash-prompt 0.1.0
.Bug Fixes