Add an --only flag to disable features by default
Review Request #10181 — Created Sept. 25, 2018 and submitted
Information | |
---|---|
brennie | |
Review Board | |
release-2.5.x | |
|
|
10182 | |
d39551f... | |
Reviewers | |
reviewboard | |
Our previous workflow for running a specific set of
prepare-dev.py
was
to to pass an argument for each section we did not want to run. e.g., to
run only the dependency installation, you would run:./contrib/internal/prepare-dev.py --no-db --no-media.
That is, each action was enabled by default and you had to disable
everything you didn't want to run. As more features get added to
prepare-dev.py
, it becomes less user friendly to force the user to
specify the complement of the features that they don't want to run.Now we have an
--only
option which inverts our usual behaviour. In
other words, to run only the dependency installation as above, you
would run./contrib/internal/prepare-dev.py --only --deps
This allows the user to more easily specify and run a minimal part of
prepare-dev.py
's actions, as opposed to the old behaviour which
assumed you wanted to run a maximal part of its actions.
Ran
./contrib/internal/prepare-dev.py --only --deps
and only deps
were installed.
Change Summary:
Correct the set of attrs.
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 2 (+27 -4) |
Checks run (2 succeeded)
Change Summary:
Address feedback.
Description: |
|
---|
-
-
-
contrib/internal/prepare-dev.py (Diff revision 2) I feel like this could be a bit more specific in its behavior. How about:
Disable all features by default (implying --no-* for each option) unless specifically enabled (.e.g, --media --deps)
Change Summary:
Addressed feedback.
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 3 (+67 -12) |