Merge pull request #227 from ngtuna/go-getable

make kompose go get-able
This commit is contained in:
Tuna 2016-10-30 16:55:09 +01:00 committed by GitHub
commit e909f9f959
4 changed files with 8 additions and 2 deletions

View File

@ -40,6 +40,12 @@ tar -xvf kompose_linux-amd64.tar.gz --strip 1
sudo mv kompose /usr/local/bin
```
Otherwise, you could take the latest development package from master branch. Make sure your PATH includes the $GOPATH/bin directory so your commands can be easily used:
```console
$ go get github.com/kubernetes-incubator/kompose
$ export PATH=$PATH:$GOPATH/bin
```
## Bash completion
Running this below command in order to benefit from bash completion

View File

@ -12,7 +12,7 @@ rm -f $OUT_FILE
go build \
"${BUILD_FLAGS[@]}" \
-o $OUT_FILE \
./cli/main
main.go
if [ $? -eq 0 ]; then
echo "Build successful. Program saved as ${OUT_FILE}"

View File

@ -24,4 +24,4 @@ rm -f kompose*
gox "${OS_PLATFORM_ARG[@]}" "${OS_ARCH_ARG[@]}" \
-output="bundles/kompose_{{.OS}}-{{.Arch}}/kompose" \
"${BUILD_FLAGS[@]}" \
./cli/main
main.go