diff --git a/hack/whatApi.sh b/hack/whatApi.sh index 471fae4ab..50336b6d7 100755 --- a/hack/whatApi.sh +++ b/hack/whatApi.sh @@ -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