diff options
author | Rory Dudley | 2024-02-19 17:09:07 -0700 |
---|---|---|
committer | Rory Dudley | 2024-02-19 17:09:07 -0700 |
commit | d98ab111eebfcf5e6327daaec17b5de578d64a41 (patch) | |
tree | 14552e07c1f6e5bdcc053fee86b3c78ce84cad1f /.gitignore | |
parent | 08be85a2fc508450c6361af4ef38a7dcd3efbde5 (diff) | |
download | dwarvish-evryloop.tar.gz |
Path refresh refactor, comments, and error messagesevryloop
The 'eval' function was renamed to 'repl'.
The code to refresh the $PATH was moved into it's own function:
'prefresh', and is now being called in three locations:
- At the beginning of 'repl', before the main loop
- Inside the main loop, possibly during a path search if the command
is not initially found
- Inside the main loop, if the call to Command::spawn() throws an
error, and the error is ErrorKind::NotFound
Doc comments were added for each function, as well as a few more
comments throughout that detail the program's control flow.
The error messages in the main repl loop were cleaned up to have a more
consistent style, and to provide more/better detail.
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions