subiquity/examples/snaps/README.md

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
553 B
Markdown
Raw Permalink Normal View History

2018-05-22 22:14:17 +00:00
## 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:
2018-05-22 22:14:17 +00:00
```
$ 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
2018-05-22 22:14:17 +00:00
```