Hi Fernando, I'm not sure I understand. Is this for module
development? And you want to purge old versions of a module you're
developing, before doing a 'git push'?
I'm not sure about an anonymous uninstall in the pwd ("."), but there
might be a way to set up a separate 'DevDir', and then use the 'nuke'
command to only delete paths in--and/or--to that directory.
https://github.com/ugexe/zef
nuke [RootDir | TempDir | StoreDir]
Deletes all paths in the specific configuration directory
nuke [site | home]
Deletes all paths that are rooted in the prefix of the matching
CompUnit::Repository name
# uninstall all modules
$ zef nuke site home
HTH, Bill.
On Wed, Sep 4, 2019 at 1:05 AM Fernando Santagata
<[email protected]> wrote:
>
> Hello,
>
> apparently there's no analogous of "zef install ." to uninstall a module,
> i.e. an "anonymous" way to do it.
>
> The problem that I'm trying to solve is to automatically uninstall and
> reinstall a module before a "git push". In order to do this I'm using the git
> pre-push hook.
> So far my pre-push script is just:
>
> zef install . --force-install
>
> but now I'm thinking that it's not enough and I'd like to uninstall the
> current module and then re-install it.
> To do that I need a way to uninstall an "anonymous" module, something along
> the lines of "zef uninstall .".
>
> Any idea?
>
> --
> Fernando Santagata