summaryrefslogtreecommitdiffstats
path: root/src/poem/anthology/alias.rs
Commit message (Collapse)AuthorAgeFilesLines
* 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.