In my quest to use the cli to release revisions of my snaps to stable, I found it quite difficult to script discovering the revision for each architecture in a specific channel in order to promote to another channel. For example:
To query the revision of a snap in the edge channel, I was able to script `snap info ’ and parse the output to get the revision in edge. However, this only finds the revision for my current architecture.
It would be useful to add a --arch arg to snap info to gather the same info for a different architecture.
Of course this could even be further simplified to add the ability to just look up the latest revision in a specific channel and architecture. But It’s easy enough to parse that out of the results of the snap info command.
We’ll need to consider this a bit further, mainly because we don’t generally manipulate information that is for a completely different architecture in the local system. But I can see your use case. Adding to the backlog.