subiquity/examples/snaps
Olivier Gayot e5017256a2 snaplist: add visual indication for starred publishers
In addition to verified publishers being indicated by a check-mark, we
now have starred publishers indicated with a circled star.

If unicode support is not available, for instance with serial
connections, we use a different number of stars to represent:

 * verified publishers: 2 stars
 * starred publishers: 1 star
 * others: no star

Because our mechanism to substitute unicode characters with ascii
equivalents expect a 1:1 mapping, we cannot simply replace the circled
start by two stars. To workaround the issue, we added a narrow
non-breakable space.

When support of unicode is available, this character shows up as a
normal space.
When support of unicode is not available, it gets replaced by a star.

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2022-05-04 10:32:32 +02:00
..
v2-changes-7 add snapdconnection.post and fake data captured from a real refresh 2019-03-12 11:49:03 +13:00
v2-changes-8 snap switch subiquity to stable/ubuntu-XX.YY.Z 2019-03-29 15:07:11 +13:00
README.md Make the code for talking to snapd more generic 2019-03-04 16:18:57 +13:00
v2-find-name=aws-cli.json Make the code for talking to snapd more generic 2019-03-04 16:18:57 +13:00
v2-find-name=canonical-livepatch.json Make the code for talking to snapd more generic 2019-03-04 16:18:57 +13:00
v2-find-name=conjure-up.json Make the code for talking to snapd more generic 2019-03-04 16:18:57 +13:00
v2-find-name=docker.json Make the code for talking to snapd more generic 2019-03-04 16:18:57 +13:00
v2-find-name=doctl.json Make the code for talking to snapd more generic 2019-03-04 16:18:57 +13:00
v2-find-name=etcd.json Make the code for talking to snapd more generic 2019-03-04 16:18:57 +13:00
v2-find-name=google-cloud-sdk.json Make the code for talking to snapd more generic 2019-03-04 16:18:57 +13:00
v2-find-name=heroku.json Make the code for talking to snapd more generic 2019-03-04 16:18:57 +13:00
v2-find-name=juju.json Make the code for talking to snapd more generic 2019-03-04 16:18:57 +13:00
v2-find-name=kata-containers.json Make the code for talking to snapd more generic 2019-03-04 16:18:57 +13:00
v2-find-name=keepalived.json Make the code for talking to snapd more generic 2019-03-04 16:18:57 +13:00
v2-find-name=microk8s.json Make the code for talking to snapd more generic 2019-03-04 16:18:57 +13:00
v2-find-name=minidlna-escoand.json Make the code for talking to snapd more generic 2019-03-04 16:18:57 +13:00
v2-find-name=mosquitto.json snaplist: add visual indication for starred publishers 2022-05-04 10:32:32 +02:00
v2-find-name=nextcloud.json Make the code for talking to snapd more generic 2019-03-04 16:18:57 +13:00
v2-find-name=postgresql10.json Make the code for talking to snapd more generic 2019-03-04 16:18:57 +13:00
v2-find-name=powershell.json Make the code for talking to snapd more generic 2019-03-04 16:18:57 +13:00
v2-find-name=prometheus.json snaplist: add visual indication for starred publishers 2022-05-04 10:32:32 +02:00
v2-find-name=rocketchat-server.json Make the code for talking to snapd more generic 2019-03-04 16:18:57 +13:00
v2-find-name=sabnzbd.json Make the code for talking to snapd more generic 2019-03-04 16:18:57 +13:00
v2-find-name=slcli.json Make the code for talking to snapd more generic 2019-03-04 16:18:57 +13:00
v2-find-name=stress-ng.json Make the code for talking to snapd more generic 2019-03-04 16:18:57 +13:00
v2-find-name=wekan.json Make the code for talking to snapd more generic 2019-03-04 16:18:57 +13:00
v2-find-name=wormhole.json Make the code for talking to snapd more generic 2019-03-04 16:18:57 +13:00
v2-find-section=server.json snaplist: add visual indication for starred publishers 2022-05-04 10:32:32 +02:00
v2-find-select=refresh.json hack snap version numbers in sample data to be more realistic 2019-04-09 23:13:37 +12:00
v2-snaps-subiquity.json hack snap version numbers in sample data to be more realistic 2019-04-09 23:13:37 +12:00

README.md

Sample snap data

This directory contains canned responses from snapd's REST API that are used by default in dry-run mode. (You can pass --no-snaps-from-examples flag to talk to your local snapd instead). It was generated something like this:

$ curl --silent --unix-socket /var/run/snapd.socket a/v2/find?section=server | jq . > v2-find-section=server.json
$ for x in $(cat v2-find-section=server.json | jq -r '.result  | .[].name'); do curl --silent --unix-socket /var/run/snapd.socket a/v2/find?name=$x | jq . > v2-find-name=$x.json; done