-
Notifications
You must be signed in to change notification settings - Fork 697
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Internal refactorings to install command. #6746
Internal refactorings to install command. #6746
Conversation
@@ -628,6 +464,164 @@ installAction ( configFlags, configExFlags, installFlags | |||
haddockFlags testFlags benchmarkFlags | |||
globalConfigFlag = projectConfigConfigFile (projectConfigShared cliConfig) | |||
|
|||
|
|||
getClientInstallFlags :: Verbosity -> GlobalFlags -> ClientInstallFlags -> IO ClientInstallFlags |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The name should hint that this is used for ignore-project
cases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I'm not familiar with ignore-project
cases or what they imply so can't really come up with a better name, let me know if you have a suggestion.
Please squash into single commit and merge once CI is green |
be2a352
to
d080622
Compare
This simply extract logic out of installAction into separate helper functions. This makes the inputs to each of these explicit and removes data dependencies from a distance. This will make it easier in the future to pull out behaviour to be shared between the 'install' command and the 'env' command.
d080622
to
95d4917
Compare
Pulls out implementation details into standalone functions. This makes the required inputs clear and removes from-afar data dependencies.
Please include the following checklist in your PR:
changelog.d
directory).Please also shortly describe how you tested your change. Bonus points for added tests!