Skip to content

Commit a0c2686

Browse files
Merge pull request NVIDIA#20 from zyga/feature/completion
snap: Enable bash completions
2 parents cd62f96 + d8d7b14 commit a0c2686

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎snap/snapcraft.yaml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ apps:
2828
- network-bind
2929
- kube-config
3030
- home
31+
completer: etc/bash_completion.d/snap.openshell
3132
gateway:
3233
command: bin/openshell-server-wrapper
3334
daemon: simple
@@ -97,6 +98,12 @@ parts:
9798
# Relay back to snapcraft.
9899
craftctl set grade="$grade"
99100
craftctl set version="$version"
101+
override-build: |
102+
craftctl default
103+
104+
mkdir -p ${CRAFT_PART_INSTALL}/etc/bash_completion.d/
105+
${CRAFT_PART_INSTALL}/bin/openshell completions bash > ${CRAFT_PART_INSTALL}/etc/bash_completion.d/snap.openshell
106+
100107
101108
vm-runtime:
102109
plugin: nil

0 commit comments

Comments
 (0)