Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Add --try-or-install command-line option #1328

Merged
merged 2 commits into from
Jan 23, 2023

Conversation

jpnurmi
Copy link
Contributor

@jpnurmi jpnurmi commented Jan 20, 2023

Skip the Try or install page unless requested by passing --try-or-install.

Ref: #1307

@jpnurmi
Copy link
Contributor Author

jpnurmi commented Jan 20, 2023

@CarlosNihelton I guess we can live with this property drilling for now but I think soon it's time to introduce a top-level app model as you did in the WSL setup. :)

builder: WelcomePage.create,
onNext: (_) {
if (tryOrInstall == true) {
return Routes.tryOrInstall;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these lines are covered by the integration test even though we don't collect coverage info for them because by running the entire app it'd be too easy to cover 100% :P

Copy link
Contributor

@CarlosNihelton CarlosNihelton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see something like a global constant app config easily fits in here, but let's keep the idea for the future.

LGTM 👍🏽

@jpnurmi jpnurmi merged commit bb45c7d into canonical:main Jan 23, 2023
@jpnurmi jpnurmi deleted the try-or-install branch January 23, 2023 12:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants