diff --git a/.gitignore b/.gitignore index 0888f25..06ed739 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,9 @@ vendor/*/ tmp/ cover/ yq + +# snapcraft +parts/ +prime/ +.snapcraft/ +yq*.snap diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 0000000..0ef77c3 --- /dev/null +++ b/snap/snapcraft.yaml @@ -0,0 +1,24 @@ +name: yq +version: git +summary: A lightweight and portable command-line YAML processor +description: | + The aim of the project is to be the jq or sed of yaml files. + +grade: devel # must be 'stable' to release into candidate/stable channels +confinement: strict + +apps: + yq: + command: yq + plugs: [home] + +parts: + yq: + plugin: go + source: . + go-importpath: github.com/mikefarah/yq + #go-packages: [github.com/mikefarah/yq] + after: [go] + go: + source-tag: go1.9.4 +