Describe the bug
When one runs ally remove on an alias with documentation added on the lines above, these lines of documentation are not properly removed; instead, they remain and are then incorrectly interpreted as docs for other commands.
Output
First, create a sample .ally file:
# This is example documentation
alias example="echo Hello, World\!"
alias testTwo="echo TestTwo"
Now, run ally remove:
ally remove example
.Ally file has been resaved, and example is no longer available in the .ally file. To make these settings take effect for this terminal session, run
source ~/.ally
However, if one now executes ally list or looks at the contents of the ~/.ally file:
# This is example documentation
alias testTwo="echo TestTwo"
The alias is removed, but its docs were not.
To Reproduce
Steps to reproduce the behavior:
Add commands with docs to .ally file.
Execute ally remove ALIAS_WITH_DOCUMENTATION
Run ally list or cat ~/.ally
See that docs for removed command still remain, and are incorrectly attributed to other commands.
Expected behavior
The documentation should have been removed with the command when ally remove was run, leaving no docs left for the removed command.
Describe the bug When one runs
ally remove
on an alias with documentation added on the lines above, these lines of documentation are not properly removed; instead, they remain and are then incorrectly interpreted as docs for other commands.Output First, create a sample
.ally
file:Now, run
ally remove
:However, if one now executes
ally list
or looks at the contents of the~/.ally
file:The alias is removed, but its docs were not.
To Reproduce Steps to reproduce the behavior:
.ally
file.ally remove ALIAS_WITH_DOCUMENTATION
ally list
orcat ~/.ally
Expected behavior The documentation should have been removed with the command when
ally remove
was run, leaving no docs left for the removed command.