Skip to content

Interactive uc command to select preferred cluster connection #125

@psviderski

Description

@psviderski

#119 implements support for multiple connections in Uncloud config. uc tries each connection in the specified order until one succeeds.

current_context: default
contexts:
  default:
    connections:
      - ssh: ubuntu@1.2.3.4
      - ssh: root@5.6.7.8
      - ssh: user@9.10.11.12

To prioritise a particular connection, a user can edit the config and put the connection on the first place.

An interactive uc command for choosing the first/default connection would be handy. For example, we can extend the uc ctx command. Use up/down arrows to choose the context. Then, before pressing enter, you can press 'c', and a nested selector appears that allows you to select the default connection for that context (which is optional).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions