Skip to content

add browser option to config#3992

Merged
samcoe merged 4 commits intocli:trunkfrom
despreston:858-config-browser
Aug 17, 2021
Merged

add browser option to config#3992
samcoe merged 4 commits intocli:trunkfrom
despreston:858-config-browser

Conversation

@despreston
Copy link
Contributor

Allows setting the path to the browser using the config.

Closes #858

Allows setting the path to the browser using the config.

Closes cli#858
@despreston despreston force-pushed the 858-config-browser branch from 79fe649 to c95f30a Compare July 13, 2021 19:08
@mislav mislav added the enhancement a request to improve CLI label Aug 4, 2021
@mislav mislav assigned vilmibm and samcoe and unassigned vilmibm Aug 4, 2021
Copy link
Contributor

@samcoe samcoe left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution! I added some tests and a little 💅

// Browser precedence
// 1. browser from config
// 2. BROWSER
func browserLauncher(f *cmdutil.Factory) string {
Copy link
Contributor

Choose a reason for hiding this comment

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

I extracted this function from browser for testability purposes.

Copy link
Contributor

@mislav mislav left a comment

Choose a reason for hiding this comment

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

This is all excellent. Thank you both!

@samcoe samcoe merged commit 8fb6bb6 into cli:trunk Aug 17, 2021
@despreston despreston deleted the 858-config-browser branch August 17, 2021 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement a request to improve CLI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gh config set browser

4 participants