cider icon indicating copy to clipboard operation
cider copied to clipboard

What reason removed --project-root option?

Open granoeste opened this issue 3 years ago • 2 comments

What reason removed --project-root option at latest release 0.1.0 ?

$ cider version --project-root app

Unhandled exception:
Could not find an option named "project-root".
Usage: cider version [arguments]
-h, --help    Print this usage information.

granoeste avatar May 13 '21 11:05 granoeste

--project-root was not an intentional feature, it was rather a side-effect to enable testing. At v0.1 Cider detects project root automatically by locating pubspec.yaml starting from the current folder and going up the tree. So you can run it either from the project root of from any subdirectory. Do you feel you still need that argument? What is your usecase?

f3ath avatar May 14 '21 02:05 f3ath

I bump up version code and number with cider on CI Build. Our product has separated module under project directory. application, models, data, etc. So I had to define application directory with --project-root.

Currently, I change the directory before running the command.

granoeste avatar May 25 '21 07:05 granoeste

Reintroduced -project-root in v0.2.

f3ath avatar Jun 11 '23 22:06 f3ath