# test that chezmoi apply --dry-run --remove does not remove entries
chezmoi apply --dry-run --force --remove
exists $HOME/.dir/file
exists $HOME/.file1
exists $HOME/.file2

# test that chezmoi apply --remove file removes only file
chezmoi apply --force --remove $HOME${/}.file1
exists $HOME/.dir/file
! exists $HOME/.file1
exists $HOME/.file2

# test that chezmoi apply --remove removes all entries
chezmoi apply --force --remove
! exists $HOME/.dir/file
! exists $HOME/.file1
! exists $HOME/.file2

-- home/user/.dir/file --
# contents of .dir/file
-- home/user/.file1 --
# contents of .file1
-- home/user/.file2 --
# contents of .file2
-- home/user/.local/share/chezmoi/.chezmoiremove --
.dir
.file*
