Allow passing numeric or string resource ID in new CLI #71
Labels
improvement
A change that improves our (or users) QoL
tui
Command line interface (iggy-cmd/iggy-cli) related change
In order to make a new CLI compatible with existing API, we could allow the user to provide either numeric ID (e.g. Stream = 1), or string ID (e.g. Topic = "orders") for the resources such as
stream
,topic
anduser
.For example, the SDK command looks like this:
And the CLI command could either use the same
Identifier
wrapper or just make use ofString
? to work similarly:The only exceptions are
CreateStream
andCreateTopic
commands (in the latter, you can use theIdentifier
forstream_id
only).The text was updated successfully, but these errors were encountered: