Skip to content

Allow referencing servers via nicknames #59

Open
@Aptimex

Description

@Aptimex

(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

Metadata

Metadata

Assignees

No one assigned

    Labels

    planned featureLikely to get implemented in the future

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions