Closed slint closed 4 years ago
Thanks for reporting! It makes sense (Added it to the board)
P.S. Happy to see zenodo-rdm ;)
@slint Oh my... thank you for that! Making sure the cli configuration/file is re-usable on different developer machine was a total blindspot on my part. Pablo and I have fixed a number of problems that was going to cause in https://github.com/inveniosoftware/invenio-cli/pull/125 .
The fact that
project_dir
is filled-in duringinit
as an absolute path, makes it not possible to re-use the generated project files in a different directory/machine. Example:A possible solution is to follow the behaviour of
pipenv
regarding thePipfile
location in order to auto-detect theproject_dir
value. Basically if you runinvenio-cli
in a directory that has a.invenio
file, it should use this directory as the absolute path, instead of baking it in.invenio
.This probably also requires some design/refactoring on how the CLI determines its context...