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:
snapcraft release <snap-name> <revision> <channel>
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.