Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
TL;DR
This PR introduces a new
proxies
feature, allowing users to create, list, get, and delete various types of proxies (datacenter, residential, etc.). The feature is housed under a new, experimentalbeta
command. Additionally, thebrowsers create
command has been updated to allow launching a browser session with a specified proxy.Why we made these changes
To provide users with integrated tools for managing and utilizing proxies directly within the CLI. This simplifies workflows that require running browser sessions from different geolocations or under specific network configurations, removing the need for external proxy management.
What changed?
New
beta
Command:beta
command (cmd/beta.go
,cmd/root.go
) to house new and experimental features safely.New
proxies
Subcommand:beta proxies
(cmd/proxies/*.go
).create
: Supports creating datacenter, ISP, residential, mobile, and custom proxies with various configuration flags.list
: Displays all configured proxies in a formatted table with type-specific details.get
: Retrieves and shows detailed information for a single proxy by its ID.delete
: Removes a specified proxy, with a confirmation prompt.Browser Integration:
browsers create
command with a--proxy-id
flag to attach a managed proxy to a new browser session (cmd/browsers.go
).Dependencies:
go.mod
andgo.sum
to include new dependencies required for the proxy management functionality.Validation
proxies
subcommands (cmd/proxies/*_test.go
), covering:FakeProxyService
was implemented to mock API interactions and ensure reliable testing.Description generated by Mesa. Update settings