Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cluster: disable selecting key for the config patching #923

Closed
themilchenko opened this issue Aug 8, 2024 · 0 comments
Closed

cluster: disable selecting key for the config patching #923

themilchenko opened this issue Aug 8, 2024 · 0 comments
Assignees

Comments

@themilchenko
Copy link
Contributor

Description

It's inconvenient to select a key every time we want to patch config for some reason using command tt cluster replicaset if there is only one key. For example:

$ ./tt cluster rs promote "http://sampleuser:123456@localhost:4403/myapp" instance002
Use the arrow keys to navigate: ↓ ↑ → ← 
? Select a key for the config patching: 
  ▸ /myapp/config/all

Need to add functionality to avoid this step with selecting a key if it is only one and it is nothing to choose.

@themilchenko themilchenko self-assigned this Aug 8, 2024
themilchenko added a commit that referenced this issue Aug 8, 2024
It's inconvenient to select a key every time we want to patch config for
some reason using command `tt cluster replicaset` if there is only one
key.

After the patch `tt` skips selecting of key if it is only one key for
choose. If it is not one key, `tt` will print the path to the
destination path in config.

Closes #923
themilchenko added a commit that referenced this issue Aug 9, 2024
It was inconvenient to select a key every time we want to patch config for
some reason using command `tt cluster replicaset` if there is only one
key.

After the patch `tt` skips selecting of key if it is only one key for
choose. If it is not one key, `tt` will print the path to the
destination path in config.

Closes #923
themilchenko added a commit that referenced this issue Aug 12, 2024
It was inconvenient to select a key every time we want to patch config for
some reason using command `tt cluster replicaset` if there is only one
key.

After the patch `tt` skips selecting of key if it is only one key for
choose. If it is not one key, `tt` will print the path to the
destination path in config.

Closes #923
themilchenko added a commit that referenced this issue Aug 12, 2024
It was inconvenient to select a key every time we want to patch config for
some reason using command `tt cluster replicaset` if there is only one
key.

After the patch `tt` skips selecting of key if it is only one key for
choose. If it is not one key, `tt` will print the path to the
destination path in config.

Closes #923
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants