Update whatApi.sh

This commit is contained in:
Jeff Regan
2019-11-02 14:12:15 -07:00
committed by GitHub
parent 133d8bff5e
commit 690e01c2ba

View File

@@ -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 =================================="
}