Update whatApi.sh

This commit is contained in:
Jeff Regan
2019-11-04 09:50:43 -08:00
committed by GitHub
parent 6b81ae9a93
commit 588297f1f9

View File

@@ -1,9 +1,15 @@
# Report on use of API module.
# Report how kustomize and the plugins use the API module.
#
# Usage:
# ./hack/whatApi.sh plugin
# ./hack/whatApi.sh kustomize
# The packages listed below in 'grep -v' lines will
# likely appear in API v1.
#
# Packages not listed (i.e. emitted to stdout) will
# likely move to internal.
#
function whatApi {
echo "==== begin $1 =================================="
find $1 -name "*.go" |\
@@ -15,13 +21,21 @@ function whatApi {
sed 's|sigs.k8s.io/kustomize/api/||' |\
sort |\
uniq |\
grep -v " filesys " |\
grep -v " resource " |\
grep -v " resid " |\
grep -v " resmap " |\
grep -v " testutils/" |\
grep -v " filesys " |\
grep -v " hasher " |\
grep -v " ifc " |\
grep -v " inventory " |\
grep -v " konfig" |\
grep -v " krusty " |\
grep -v " kv " |\
grep -v " provenance " |\
grep -v " resid " |\
grep -v " resmap " |\
grep -v " resource " |\
grep -v " testutils" |\
grep -v " types "
echo "==== end $1 =================================="
}
whatApi $1