mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 18:25:26 +00:00
Update whatApi.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user