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

Allow referencing servers via nicknames #59

Open
Aptimex opened this issue Aug 21, 2024 · 0 comments
Open

Allow referencing servers via nicknames #59

Aptimex opened this issue Aug 21, 2024 · 0 comments
Labels
planned feature Likely to get implemented in the future

Comments

@Aptimex
Copy link
Collaborator

Aptimex commented Aug 21, 2024

(Pending the merge of #48 )

Allow replacing some args like --server-address with a server's nickname and have it deduce the correct API address from that.

Could either introduce a separate arg like --nickname, or (probably easier) just have existing args additionally check if the passed value is a valid nickname that can be used to deduce the correct value.

Also need to figure out how to handle duplicate nicknames since currently those don't have to be unique. Possible solutions:

  • Prevent duplicates directly in the configure and add commands; seems messy
  • Let it just pick the first match it finds and note that the selection behavior is undefined if duplicates exist
  • Throw an error if duplicates exist; this is probably the best combo of simple but robust
@Aptimex Aptimex added the planned feature Likely to get implemented in the future label Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
planned feature Likely to get implemented in the future
Projects
None yet
Development

No branches or pull requests

1 participant