Skip to content

feat: parse connection string as address with user

Dmitry Travyan requested to merge 252-support-user-host-port into master

Refactor address parsing in CLI:

  • 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

Close #252 (closed).

Edited by Yaroslav Dynnikov

Merge request reports