{"action":"created","issue":{"url":"https://api.github.com/repos/clearlinux/mixer-tools/issues/307","repository_url":"https://api.github.com/repos/clearlinux/mixer-tools","labels_url":"https://api.github.com/repos/clearlinux/mixer-tools/issues/307/labels{/name}","comments_url":"https://api.github.com/repos/clearlinux/mixer-tools/issues/307/comments","events_url":"https://api.github.com/repos/clearlinux/mixer-tools/issues/307/events","html_url":"https://github.com/clearlinux/mixer-tools/pull/307","id":324538165,"number":307,"title":"swupd-inspector: initial import","user":{"login":"cmarcelo","id":10478,"avatar_url":"https://avatars3.githubusercontent.com/u/10478?v=4","gravatar_id":"","url":"https://api.github.com/users/cmarcelo","html_url":"https://github.com/cmarcelo","followers_url":"https://api.github.com/users/cmarcelo/followers","following_url":"https://api.github.com/users/cmarcelo/following{/other_user}","gists_url":"https://api.github.com/users/cmarcelo/gists{/gist_id}","starred_url":"https://api.github.com/users/cmarcelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmarcelo/subscriptions","organizations_url":"https://api.github.com/users/cmarcelo/orgs","repos_url":"https://api.github.com/users/cmarcelo/repos","events_url":"https://api.github.com/users/cmarcelo/events{/privacy}","received_events_url":"https://api.github.com/users/cmarcelo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-05-18T20:13:36Z","updated_at":"2018-05-18T23:30:05Z","closed_at":null,"author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/clearlinux/mixer-tools/pulls/307","html_url":"https://github.com/clearlinux/mixer-tools/pull/307","diff_url":"https://github.com/clearlinux/mixer-tools/pull/307.diff","patch_url":"https://github.com/clearlinux/mixer-tools/pull/307.patch"},"body":"swupd-inspector contains various commands that help read data of a\r\nswupd repository: download the fullfile for a specific file, see the\r\nManifest for a specific version, see the differences between two\r\nversions.\r\n\r\nThe 'diff' subcommand was one of the tools used to evaluate whether\r\nthe new swupd implementation was generating correct results compared\r\nwith the existing clear implementation.\r\n\r\nThe clientState struct is almost the same as the one used in\r\nswupd-extract, and given the two use cases, a potential candidate to\r\nmove over to swupd package (or at least to an internal package so we\r\ncan use without being API). I'm postponing this to when we make\r\nfurther updates to either of the programs.\r\n\r\nLike swupd-extract, it does have a shortcut to handle the main Clear\r\nLinux repository\r\n\r\n    // Shows the content of Manifest.vim at a specific OS version\r\n    $ swupd-inspector cat clear/22460 Manifest.vim\r\n\r\n    // Download a fullfile for a given file\r\n    $ swupd-inspector get clear/22460 /usr/bin/vim\r\n\r\n    // Show the differences between two versions\r\n    $ swupd-inspector diff clear/22450 clear/22460\r\n\r\n    // List the different versions of a file since a given OS version\r\n    $ swupd-inspector log clear/22450 /usr/bin/vim\r\n\r\nIn those examples, \"clear/...\" could be replace for a URL of a\r\nrepository (plus version) of a mix. The downloaded metadata is cached\r\nbased on the URL, allowing further queries to be cached, even when\r\nquerying mixes.\r\n\r\nSigned-off-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>"},"comment":{"url":"https://api.github.com/repos/clearlinux/mixer-tools/issues/comments/390357645","html_url":"https://github.com/clearlinux/mixer-tools/pull/307#issuecomment-390357645","issue_url":"https://api.github.com/repos/clearlinux/mixer-tools/issues/307","id":390357645,"user":{"login":"cmarcelo","id":10478,"avatar_url":"https://avatars3.githubusercontent.com/u/10478?v=4","gravatar_id":"","url":"https://api.github.com/users/cmarcelo","html_url":"https://github.com/cmarcelo","followers_url":"https://api.github.com/users/cmarcelo/followers","following_url":"https://api.github.com/users/cmarcelo/following{/other_user}","gists_url":"https://api.github.com/users/cmarcelo/gists{/gist_id}","starred_url":"https://api.github.com/users/cmarcelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmarcelo/subscriptions","organizations_url":"https://api.github.com/users/cmarcelo/orgs","repos_url":"https://api.github.com/users/cmarcelo/repos","events_url":"https://api.github.com/users/cmarcelo/events{/privacy}","received_events_url":"https://api.github.com/users/cmarcelo/received_events","type":"User","site_admin":false},"created_at":"2018-05-18T23:30:05Z","updated_at":"2018-05-18T23:30:05Z","author_association":"COLLABORATOR","body":"This PR depends on #314.\r\n\r\nI've pushed this new version (without Cobra) to simplify review until I do the Cobra change."}}
{"actor":{"display_login":"cmarcelo"}}