summaryrefslogtreecommitdiffstats
path: root/src/poem/anthology/alias.rs
Commit message (Collapse)AuthorAgeFilesLines
* Add docstring comments to all the anthology functionsRory Dudley2024-03-311-0/+18
| | | | | | Add docstring comments for all the incant function throughout the anthology, documenting what each function does, and an example of it's shell command.
* Add the 'alias' built-in commandRory Dudley2024-03-301-0/+47
The shell now has support for aliases (via alias foo=bar). The 'unalias' command is also available to remove aliases. Finally, Environment::aliases was changed to be a HashMap<String, String>, instead of a Vec<String>. Since the verse's verb might change (for instance, it is an environment variable, or an alias), add another check in Poem::recite, which simply continues, instead of running the spellchecker, if the verb is empty.