Skip to content
This repository was archived by the owner on Nov 25, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ archives:
# that functionality to bundle our bash scripts into the archive.
files:
- bin/kubectl-crossplane-*
- LICENSE

checksum:
name_template: 'checksums.txt'
Expand Down
8 changes: 5 additions & 3 deletions bin/kubectl-crossplane
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ function check_help {

check_help "${1}"

if [[ $# -lt 1 ]] ; then
usage
exit 1
if [[ $# -gt 0 ]] ; then
echo "Unknown command: $1" >&2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Niceee 🦑

fi

usage
exit 1
9 changes: 9 additions & 0 deletions bin/kubectl-crossplane-krew-wrapper
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

# Wrapper to unify all crossplane-cli plugin commands
# for use by krew

set -e
BASEDIR=$(dirname $(realpath "$0"))

PATH="${BASEDIR}:${PATH}" exec kubectl crossplane "$@"