Skip to content
Snippets Groups Projects
Commit 9d91b461 authored by Dmitry Travyan's avatar Dmitry Travyan :bus: Committed by Yaroslav Dynnikov
Browse files

refactor: cli address parsing

The following commands are affected:

- `picodata connect [user@][host][:port]`
- `picodata run --peer`
- `picodata run --listen`
- `picodata run --http-listen`
- `picodata run --advertise`
- `picodata expel --peer`

Only `picodata connect` respects the username. Other options just ignore
it.

- Provide new `struct Address`
- Replace `try_parse_address` function with `impl FromStr for Address`.
- Provide both unit and pytests
parent 03dfc8cb
No related branches found
No related tags found
1 merge request!595feat: parse connection string as address with user
Pipeline #20603 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment