Permalink
Browse files

snap: Add bash completion

  • Loading branch information...
anthonyfok authored and bep committed Apr 5, 2018
1 parent 294c0f8 commit 874159b5436bc9080aec71a9c26d35f8f62c9fd0
Showing with 3 additions and 0 deletions.
  1. +3 −0 snapcraft.yaml
@@ -11,6 +11,7 @@ grade: devel # "devel" or "stable"
apps:
hugo:
command: bin/hugo
completer: hugo-completion
plugs: [home, network-bind, removable-media]
parts:
@@ -34,10 +35,12 @@ parts:
export PATH=$GOPATH/bin:$PATH
[ "$SNAPCRAFT_PROJECT_GRADE" = "stable" ] && mage hugoNoGitInfo || mage hugo
./hugo version
./hugo gen autocomplete --completionfile=hugo-completion
install: |
install -d $SNAPCRAFT_PART_INSTALL/bin
cp -a hugo $SNAPCRAFT_PART_INSTALL/bin/hugo
strip --remove-section=.comment --remove-section=.note $SNAPCRAFT_PART_INSTALL/bin/hugo
mv hugo-completion $SNAPCRAFT_PART_INSTALL/hugo-completion
after: [go]
go:
source-tag: go1.10

0 comments on commit 874159b

Please sign in to comment.