From 690e01c2badf11b88994a53ef00f3d9e88afc4cd Mon Sep 17 00:00:00 2001 From: Jeff Regan Date: Sat, 2 Nov 2019 14:12:15 -0700 Subject: [PATCH] Update whatApi.sh --- hack/whatApi.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/hack/whatApi.sh b/hack/whatApi.sh index eb035d3a6..d81e06f70 100755 --- a/hack/whatApi.sh +++ b/hack/whatApi.sh @@ -6,14 +6,21 @@ function whatApi { echo "==== begin $1 ==================================" - find $1 -name "*.go" |\ + find $1 -name "*.go" |\ xargs grep \"sigs.k8s.io/kustomize/api/ |\ sed 's|:\s"|: dummy "|' |\ sed 's|:\s\w\+\s"| |' |\ sed 's|"$||' |\ awk '{ printf "%60s %s\n", $2, $1 }' |\ sed 's|sigs.k8s.io/kustomize/api/||' |\ - sort | uniq + sort |\ + uniq |\ + grep -v " filesys " |\ + grep -v " resource " |\ + grep -v " resid " |\ + grep -v " resmap " |\ + grep -v " testutils/" |\ + grep -v "types " echo "==== end $1 ==================================" }