From 7c6dfc3e3eb9fb336faa21c8f740fec69696f380 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan-Luis=20de=20Sousa-Valadas=20Casta=C3=B1o?= Date: Fri, 2 Feb 2024 17:06:14 +0100 Subject: [PATCH] Extract cmd/helm to external package MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Prior to this commit we couldn't import "helm.sh/helm/v3/cmd/helm" because "helm.sh/helm/v3/cmd/helm" is a program, not an importable package. Signed-off-by: Juan-Luis de Sousa-Valadas CastaƱo --- cmd/helm/{ => app}/completion.go | 2 +- cmd/helm/{ => app}/completion_test.go | 2 +- cmd/helm/{ => app}/create.go | 2 +- cmd/helm/{ => app}/create_test.go | 2 +- cmd/helm/{ => app}/dependency.go | 2 +- cmd/helm/{ => app}/dependency_build.go | 2 +- cmd/helm/{ => app}/dependency_build_test.go | 2 +- cmd/helm/{ => app}/dependency_test.go | 2 +- cmd/helm/{ => app}/dependency_update.go | 2 +- cmd/helm/{ => app}/dependency_update_test.go | 2 +- cmd/helm/{ => app}/docs.go | 2 +- cmd/helm/{ => app}/docs_test.go | 2 +- cmd/helm/{ => app}/env.go | 2 +- cmd/helm/{ => app}/env_test.go | 2 +- cmd/helm/{ => app}/flags.go | 2 +- cmd/helm/{ => app}/flags_test.go | 2 +- cmd/helm/{ => app}/get.go | 2 +- cmd/helm/{ => app}/get_all.go | 2 +- cmd/helm/{ => app}/get_all_test.go | 2 +- cmd/helm/{ => app}/get_hooks.go | 2 +- cmd/helm/{ => app}/get_hooks_test.go | 2 +- cmd/helm/{ => app}/get_manifest.go | 2 +- cmd/helm/{ => app}/get_manifest_test.go | 2 +- cmd/helm/{ => app}/get_metadata.go | 2 +- cmd/helm/{ => app}/get_metadata_test.go | 2 +- cmd/helm/{ => app}/get_notes.go | 2 +- cmd/helm/{ => app}/get_notes_test.go | 2 +- cmd/helm/{ => app}/get_test.go | 2 +- cmd/helm/{ => app}/get_values.go | 2 +- cmd/helm/{ => app}/get_values_test.go | 2 +- cmd/helm/{ => app}/helm.go | 4 ++-- cmd/helm/{ => app}/helm_test.go | 4 ++-- cmd/helm/{ => app}/history.go | 2 +- cmd/helm/{ => app}/history_test.go | 2 +- cmd/helm/{ => app}/install.go | 2 +- cmd/helm/{ => app}/install_test.go | 2 +- cmd/helm/{ => app}/lint.go | 2 +- cmd/helm/{ => app}/lint_test.go | 2 +- cmd/helm/{ => app}/list.go | 2 +- cmd/helm/{ => app}/list_test.go | 2 +- cmd/helm/{ => app}/load_plugins.go | 2 +- cmd/helm/{ => app}/package.go | 2 +- cmd/helm/{ => app}/package_test.go | 2 +- cmd/helm/{ => app}/plugin.go | 2 +- cmd/helm/{ => app}/plugin_install.go | 2 +- cmd/helm/{ => app}/plugin_list.go | 2 +- cmd/helm/{ => app}/plugin_test.go | 2 +- cmd/helm/{ => app}/plugin_uninstall.go | 2 +- cmd/helm/{ => app}/plugin_update.go | 2 +- cmd/helm/{ => app}/printer.go | 2 +- cmd/helm/{ => app}/pull.go | 2 +- cmd/helm/{ => app}/pull_test.go | 2 +- cmd/helm/{ => app}/push.go | 2 +- cmd/helm/{ => app}/push_test.go | 2 +- cmd/helm/{ => app}/registry.go | 2 +- cmd/helm/{ => app}/registry_login.go | 2 +- cmd/helm/{ => app}/registry_login_test.go | 2 +- cmd/helm/{ => app}/registry_logout.go | 2 +- cmd/helm/{ => app}/registry_logout_test.go | 2 +- cmd/helm/{ => app}/release_testing.go | 2 +- cmd/helm/{ => app}/release_testing_test.go | 2 +- cmd/helm/{ => app}/repo.go | 2 +- cmd/helm/{ => app}/repo_add.go | 2 +- cmd/helm/{ => app}/repo_add_test.go | 2 +- cmd/helm/{ => app}/repo_index.go | 2 +- cmd/helm/{ => app}/repo_index_test.go | 2 +- cmd/helm/{ => app}/repo_list.go | 2 +- cmd/helm/{ => app}/repo_list_test.go | 2 +- cmd/helm/{ => app}/repo_remove.go | 2 +- cmd/helm/{ => app}/repo_remove_test.go | 2 +- cmd/helm/{ => app}/repo_test.go | 2 +- cmd/helm/{ => app}/repo_update.go | 2 +- cmd/helm/{ => app}/repo_update_test.go | 2 +- cmd/helm/{ => app}/rollback.go | 2 +- cmd/helm/{ => app}/rollback_test.go | 2 +- cmd/helm/{ => app}/root.go | 2 +- cmd/helm/{ => app}/root_test.go | 2 +- cmd/helm/{ => app}/root_unix.go | 2 +- cmd/helm/{ => app}/root_unix_test.go | 2 +- cmd/helm/{ => app}/root_windows.go | 2 +- cmd/helm/{ => app}/search.go | 2 +- cmd/helm/{ => app}/search_hub.go | 2 +- cmd/helm/{ => app}/search_hub_test.go | 2 +- cmd/helm/{ => app}/search_repo.go | 2 +- cmd/helm/{ => app}/search_repo_test.go | 2 +- cmd/helm/{ => app}/search_test.go | 2 +- cmd/helm/{ => app}/show.go | 2 +- cmd/helm/{ => app}/show_test.go | 2 +- cmd/helm/{ => app}/status.go | 2 +- cmd/helm/{ => app}/status_test.go | 2 +- cmd/helm/{ => app}/template.go | 2 +- cmd/helm/{ => app}/template_test.go | 2 +- cmd/helm/{ => app}/uninstall.go | 2 +- cmd/helm/{ => app}/uninstall_test.go | 2 +- cmd/helm/{ => app}/upgrade.go | 2 +- cmd/helm/{ => app}/upgrade_test.go | 2 +- cmd/helm/{ => app}/verify.go | 2 +- cmd/helm/{ => app}/verify_test.go | 2 +- cmd/helm/{ => app}/version.go | 2 +- cmd/helm/{ => app}/version_test.go | 2 +- cmd/helm/main.go | 24 ++++++++++++++++++++ 101 files changed, 126 insertions(+), 102 deletions(-) rename cmd/helm/{ => app}/completion.go (99%) rename cmd/helm/{ => app}/completion_test.go (99%) rename cmd/helm/{ => app}/create.go (99%) rename cmd/helm/{ => app}/create_test.go (99%) rename cmd/helm/{ => app}/dependency.go (99%) rename cmd/helm/{ => app}/dependency_build.go (99%) rename cmd/helm/{ => app}/dependency_build_test.go (99%) rename cmd/helm/{ => app}/dependency_test.go (99%) rename cmd/helm/{ => app}/dependency_update.go (99%) rename cmd/helm/{ => app}/dependency_update_test.go (99%) rename cmd/helm/{ => app}/docs.go (99%) rename cmd/helm/{ => app}/docs_test.go (98%) rename cmd/helm/{ => app}/env.go (99%) rename cmd/helm/{ => app}/env_test.go (98%) rename cmd/helm/{ => app}/flags.go (99%) rename cmd/helm/{ => app}/flags_test.go (99%) rename cmd/helm/{ => app}/get.go (99%) rename cmd/helm/{ => app}/get_all.go (99%) rename cmd/helm/{ => app}/get_all_test.go (99%) rename cmd/helm/{ => app}/get_hooks.go (99%) rename cmd/helm/{ => app}/get_hooks_test.go (99%) rename cmd/helm/{ => app}/get_manifest.go (99%) rename cmd/helm/{ => app}/get_manifest_test.go (99%) rename cmd/helm/{ => app}/get_metadata.go (99%) rename cmd/helm/{ => app}/get_metadata_test.go (99%) rename cmd/helm/{ => app}/get_notes.go (99%) rename cmd/helm/{ => app}/get_notes_test.go (99%) rename cmd/helm/{ => app}/get_test.go (98%) rename cmd/helm/{ => app}/get_values.go (99%) rename cmd/helm/{ => app}/get_values_test.go (99%) rename cmd/helm/{ => app}/helm.go (98%) rename cmd/helm/{ => app}/helm_test.go (99%) rename cmd/helm/{ => app}/history.go (99%) rename cmd/helm/{ => app}/history_test.go (99%) rename cmd/helm/{ => app}/install.go (99%) rename cmd/helm/{ => app}/install_test.go (99%) rename cmd/helm/{ => app}/lint.go (99%) rename cmd/helm/{ => app}/lint_test.go (99%) rename cmd/helm/{ => app}/list.go (99%) rename cmd/helm/{ => app}/list_test.go (99%) rename cmd/helm/{ => app}/load_plugins.go (99%) rename cmd/helm/{ => app}/package.go (99%) rename cmd/helm/{ => app}/package_test.go (99%) rename cmd/helm/{ => app}/plugin.go (99%) rename cmd/helm/{ => app}/plugin_install.go (99%) rename cmd/helm/{ => app}/plugin_list.go (99%) rename cmd/helm/{ => app}/plugin_test.go (99%) rename cmd/helm/{ => app}/plugin_uninstall.go (99%) rename cmd/helm/{ => app}/plugin_update.go (99%) rename cmd/helm/{ => app}/printer.go (98%) rename cmd/helm/{ => app}/pull.go (99%) rename cmd/helm/{ => app}/pull_test.go (99%) rename cmd/helm/{ => app}/push.go (99%) rename cmd/helm/{ => app}/push_test.go (98%) rename cmd/helm/{ => app}/registry.go (98%) rename cmd/helm/{ => app}/registry_login.go (99%) rename cmd/helm/{ => app}/registry_login_test.go (98%) rename cmd/helm/{ => app}/registry_logout.go (98%) rename cmd/helm/{ => app}/registry_logout_test.go (98%) rename cmd/helm/{ => app}/release_testing.go (99%) rename cmd/helm/{ => app}/release_testing_test.go (98%) rename cmd/helm/{ => app}/repo.go (99%) rename cmd/helm/{ => app}/repo_add.go (99%) rename cmd/helm/{ => app}/repo_add_test.go (99%) rename cmd/helm/{ => app}/repo_index.go (99%) rename cmd/helm/{ => app}/repo_index_test.go (99%) rename cmd/helm/{ => app}/repo_list.go (99%) rename cmd/helm/{ => app}/repo_list_test.go (98%) rename cmd/helm/{ => app}/repo_remove.go (99%) rename cmd/helm/{ => app}/repo_remove_test.go (99%) rename cmd/helm/{ => app}/repo_test.go (98%) rename cmd/helm/{ => app}/repo_update.go (99%) rename cmd/helm/{ => app}/repo_update_test.go (99%) rename cmd/helm/{ => app}/rollback.go (99%) rename cmd/helm/{ => app}/rollback_test.go (99%) rename cmd/helm/{ => app}/root.go (99%) rename cmd/helm/{ => app}/root_test.go (99%) rename cmd/helm/{ => app}/root_unix.go (99%) rename cmd/helm/{ => app}/root_unix_test.go (99%) rename cmd/helm/{ => app}/root_windows.go (98%) rename cmd/helm/{ => app}/search.go (98%) rename cmd/helm/{ => app}/search_hub.go (99%) rename cmd/helm/{ => app}/search_hub_test.go (99%) rename cmd/helm/{ => app}/search_repo.go (99%) rename cmd/helm/{ => app}/search_repo_test.go (99%) rename cmd/helm/{ => app}/search_test.go (98%) rename cmd/helm/{ => app}/show.go (99%) rename cmd/helm/{ => app}/show_test.go (99%) rename cmd/helm/{ => app}/status.go (99%) rename cmd/helm/{ => app}/status_test.go (99%) rename cmd/helm/{ => app}/template.go (99%) rename cmd/helm/{ => app}/template_test.go (99%) rename cmd/helm/{ => app}/uninstall.go (99%) rename cmd/helm/{ => app}/uninstall_test.go (99%) rename cmd/helm/{ => app}/upgrade.go (99%) rename cmd/helm/{ => app}/upgrade_test.go (99%) rename cmd/helm/{ => app}/verify.go (99%) rename cmd/helm/{ => app}/verify_test.go (99%) rename cmd/helm/{ => app}/version.go (99%) rename cmd/helm/{ => app}/version_test.go (98%) create mode 100644 cmd/helm/main.go diff --git a/cmd/helm/completion.go b/cmd/helm/app/completion.go similarity index 99% rename from cmd/helm/completion.go rename to cmd/helm/app/completion.go index 93b9e8eab..eac69c282 100644 --- a/cmd/helm/completion.go +++ b/cmd/helm/app/completion.go @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/completion_test.go b/cmd/helm/app/completion_test.go similarity index 99% rename from cmd/helm/completion_test.go rename to cmd/helm/app/completion_test.go index 1143d6445..f13afa2e7 100644 --- a/cmd/helm/completion_test.go +++ b/cmd/helm/app/completion_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/create.go b/cmd/helm/app/create.go similarity index 99% rename from cmd/helm/create.go rename to cmd/helm/app/create.go index fe5cc540a..4fe80320c 100644 --- a/cmd/helm/create.go +++ b/cmd/helm/app/create.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/create_test.go b/cmd/helm/app/create_test.go similarity index 99% rename from cmd/helm/create_test.go rename to cmd/helm/app/create_test.go index 1a22d058f..687f20950 100644 --- a/cmd/helm/create_test.go +++ b/cmd/helm/app/create_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/dependency.go b/cmd/helm/app/dependency.go similarity index 99% rename from cmd/helm/dependency.go rename to cmd/helm/app/dependency.go index 03874742c..933448349 100644 --- a/cmd/helm/dependency.go +++ b/cmd/helm/app/dependency.go @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "io" diff --git a/cmd/helm/dependency_build.go b/cmd/helm/app/dependency_build.go similarity index 99% rename from cmd/helm/dependency_build.go rename to cmd/helm/app/dependency_build.go index 1ee46d3d2..915881992 100644 --- a/cmd/helm/dependency_build.go +++ b/cmd/helm/app/dependency_build.go @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/dependency_build_test.go b/cmd/helm/app/dependency_build_test.go similarity index 99% rename from cmd/helm/dependency_build_test.go rename to cmd/helm/app/dependency_build_test.go index 37e3242c4..8ca43c5ce 100644 --- a/cmd/helm/dependency_build_test.go +++ b/cmd/helm/app/dependency_build_test.go @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/dependency_test.go b/cmd/helm/app/dependency_test.go similarity index 99% rename from cmd/helm/dependency_test.go rename to cmd/helm/app/dependency_test.go index 34c6a25e1..b284ea6fd 100644 --- a/cmd/helm/dependency_test.go +++ b/cmd/helm/app/dependency_test.go @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "runtime" diff --git a/cmd/helm/dependency_update.go b/cmd/helm/app/dependency_update.go similarity index 99% rename from cmd/helm/dependency_update.go rename to cmd/helm/app/dependency_update.go index ad0188f17..f34db4462 100644 --- a/cmd/helm/dependency_update.go +++ b/cmd/helm/app/dependency_update.go @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "io" diff --git a/cmd/helm/dependency_update_test.go b/cmd/helm/app/dependency_update_test.go similarity index 99% rename from cmd/helm/dependency_update_test.go rename to cmd/helm/app/dependency_update_test.go index 967786b9a..7c013d238 100644 --- a/cmd/helm/dependency_update_test.go +++ b/cmd/helm/app/dependency_update_test.go @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/docs.go b/cmd/helm/app/docs.go similarity index 99% rename from cmd/helm/docs.go rename to cmd/helm/app/docs.go index 6e9788f26..174cce237 100644 --- a/cmd/helm/docs.go +++ b/cmd/helm/app/docs.go @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/docs_test.go b/cmd/helm/app/docs_test.go similarity index 98% rename from cmd/helm/docs_test.go rename to cmd/helm/app/docs_test.go index fe5864d5e..1e6307163 100644 --- a/cmd/helm/docs_test.go +++ b/cmd/helm/app/docs_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "testing" diff --git a/cmd/helm/env.go b/cmd/helm/app/env.go similarity index 99% rename from cmd/helm/env.go rename to cmd/helm/app/env.go index 3754b748d..1f245ff9b 100644 --- a/cmd/helm/env.go +++ b/cmd/helm/app/env.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/env_test.go b/cmd/helm/app/env_test.go similarity index 98% rename from cmd/helm/env_test.go rename to cmd/helm/app/env_test.go index 01ef25933..5b7991021 100644 --- a/cmd/helm/env_test.go +++ b/cmd/helm/app/env_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "testing" diff --git a/cmd/helm/flags.go b/cmd/helm/app/flags.go similarity index 99% rename from cmd/helm/flags.go rename to cmd/helm/app/flags.go index 4fcd8a0e4..518fdd5b4 100644 --- a/cmd/helm/flags.go +++ b/cmd/helm/app/flags.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "flag" diff --git a/cmd/helm/flags_test.go b/cmd/helm/app/flags_test.go similarity index 99% rename from cmd/helm/flags_test.go rename to cmd/helm/app/flags_test.go index 07d28c460..17ec7780c 100644 --- a/cmd/helm/flags_test.go +++ b/cmd/helm/app/flags_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/get.go b/cmd/helm/app/get.go similarity index 99% rename from cmd/helm/get.go rename to cmd/helm/app/get.go index 727cdaf88..6ca176727 100644 --- a/cmd/helm/get.go +++ b/cmd/helm/app/get.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "io" diff --git a/cmd/helm/get_all.go b/cmd/helm/app/get_all.go similarity index 99% rename from cmd/helm/get_all.go rename to cmd/helm/app/get_all.go index e51d50536..0a9257dfe 100644 --- a/cmd/helm/get_all.go +++ b/cmd/helm/app/get_all.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "io" diff --git a/cmd/helm/get_all_test.go b/cmd/helm/app/get_all_test.go similarity index 99% rename from cmd/helm/get_all_test.go rename to cmd/helm/app/get_all_test.go index 948f0aa71..b949218dc 100644 --- a/cmd/helm/get_all_test.go +++ b/cmd/helm/app/get_all_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "testing" diff --git a/cmd/helm/get_hooks.go b/cmd/helm/app/get_hooks.go similarity index 99% rename from cmd/helm/get_hooks.go rename to cmd/helm/app/get_hooks.go index 913e2c58a..7e5bde351 100644 --- a/cmd/helm/get_hooks.go +++ b/cmd/helm/app/get_hooks.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/get_hooks_test.go b/cmd/helm/app/get_hooks_test.go similarity index 99% rename from cmd/helm/get_hooks_test.go rename to cmd/helm/app/get_hooks_test.go index 251d5c731..5478bdf3b 100644 --- a/cmd/helm/get_hooks_test.go +++ b/cmd/helm/app/get_hooks_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "testing" diff --git a/cmd/helm/get_manifest.go b/cmd/helm/app/get_manifest.go similarity index 99% rename from cmd/helm/get_manifest.go rename to cmd/helm/app/get_manifest.go index baeaf8d72..93860e51e 100644 --- a/cmd/helm/get_manifest.go +++ b/cmd/helm/app/get_manifest.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/get_manifest_test.go b/cmd/helm/app/get_manifest_test.go similarity index 99% rename from cmd/helm/get_manifest_test.go rename to cmd/helm/app/get_manifest_test.go index 2f27476b6..c7f5ebf85 100644 --- a/cmd/helm/get_manifest_test.go +++ b/cmd/helm/app/get_manifest_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "testing" diff --git a/cmd/helm/get_metadata.go b/cmd/helm/app/get_metadata.go similarity index 99% rename from cmd/helm/get_metadata.go rename to cmd/helm/app/get_metadata.go index adab891bd..0ce20b07a 100644 --- a/cmd/helm/get_metadata.go +++ b/cmd/helm/app/get_metadata.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/get_metadata_test.go b/cmd/helm/app/get_metadata_test.go similarity index 99% rename from cmd/helm/get_metadata_test.go rename to cmd/helm/app/get_metadata_test.go index b6f0ab9f2..88de67ae3 100644 --- a/cmd/helm/get_metadata_test.go +++ b/cmd/helm/app/get_metadata_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "testing" diff --git a/cmd/helm/get_notes.go b/cmd/helm/app/get_notes.go similarity index 99% rename from cmd/helm/get_notes.go rename to cmd/helm/app/get_notes.go index b71bcbdf6..d36c458d3 100644 --- a/cmd/helm/get_notes.go +++ b/cmd/helm/app/get_notes.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/get_notes_test.go b/cmd/helm/app/get_notes_test.go similarity index 99% rename from cmd/helm/get_notes_test.go rename to cmd/helm/app/get_notes_test.go index 8be9a3f7c..d62468088 100644 --- a/cmd/helm/get_notes_test.go +++ b/cmd/helm/app/get_notes_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "testing" diff --git a/cmd/helm/get_test.go b/cmd/helm/app/get_test.go similarity index 98% rename from cmd/helm/get_test.go rename to cmd/helm/app/get_test.go index 79f914bea..d3e1077b5 100644 --- a/cmd/helm/get_test.go +++ b/cmd/helm/app/get_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "testing" diff --git a/cmd/helm/get_values.go b/cmd/helm/app/get_values.go similarity index 99% rename from cmd/helm/get_values.go rename to cmd/helm/app/get_values.go index 6124e1b33..423aad566 100644 --- a/cmd/helm/get_values.go +++ b/cmd/helm/app/get_values.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/get_values_test.go b/cmd/helm/app/get_values_test.go similarity index 99% rename from cmd/helm/get_values_test.go rename to cmd/helm/app/get_values_test.go index 423c32859..5dcbfc202 100644 --- a/cmd/helm/get_values_test.go +++ b/cmd/helm/app/get_values_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "testing" diff --git a/cmd/helm/helm.go b/cmd/helm/app/helm.go similarity index 98% rename from cmd/helm/helm.go rename to cmd/helm/app/helm.go index 553da5098..f3a5648c6 100644 --- a/cmd/helm/helm.go +++ b/cmd/helm/app/helm.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main // import "helm.sh/helm/v3/cmd/helm" +package app import ( "fmt" @@ -55,7 +55,7 @@ func warning(format string, v ...interface{}) { fmt.Fprintf(os.Stderr, format, v...) } -func main() { +func Main() { // Setting the name of the app for managedFields in the Kubernetes client. // It is set here to the full name of "helm" so that renaming of helm to // another name (e.g., helm2 or helm3) does not change the name of the diff --git a/cmd/helm/helm_test.go b/cmd/helm/app/helm_test.go similarity index 99% rename from cmd/helm/helm_test.go rename to cmd/helm/app/helm_test.go index b20b1a24d..f00c407ab 100644 --- a/cmd/helm/helm_test.go +++ b/cmd/helm/app/helm_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "bytes" @@ -170,7 +170,7 @@ func TestPluginExitCode(t *testing.T) { os.Args = []string{"helm", "exitwith", "2"} // We DO call helm's main() here. So this looks like a normal `helm` process. - main() + Main() // As main calls os.Exit, we never reach this line. // But the test called this block of code catches and verifies the exit code. diff --git a/cmd/helm/history.go b/cmd/helm/app/history.go similarity index 99% rename from cmd/helm/history.go rename to cmd/helm/app/history.go index de8b13a98..6bb7d6671 100644 --- a/cmd/helm/history.go +++ b/cmd/helm/app/history.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/history_test.go b/cmd/helm/app/history_test.go similarity index 99% rename from cmd/helm/history_test.go rename to cmd/helm/app/history_test.go index 07f2d85df..f9352a95d 100644 --- a/cmd/helm/history_test.go +++ b/cmd/helm/app/history_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/install.go b/cmd/helm/app/install.go similarity index 99% rename from cmd/helm/install.go rename to cmd/helm/app/install.go index d987d300f..24580720f 100644 --- a/cmd/helm/install.go +++ b/cmd/helm/app/install.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "context" diff --git a/cmd/helm/install_test.go b/cmd/helm/app/install_test.go similarity index 99% rename from cmd/helm/install_test.go rename to cmd/helm/app/install_test.go index b34d1455c..dbdefad13 100644 --- a/cmd/helm/install_test.go +++ b/cmd/helm/app/install_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/lint.go b/cmd/helm/app/lint.go similarity index 99% rename from cmd/helm/lint.go rename to cmd/helm/app/lint.go index 46f3c0efd..e288e965d 100644 --- a/cmd/helm/lint.go +++ b/cmd/helm/app/lint.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/lint_test.go b/cmd/helm/app/lint_test.go similarity index 99% rename from cmd/helm/lint_test.go rename to cmd/helm/app/lint_test.go index 166b69ba0..54408da05 100644 --- a/cmd/helm/lint_test.go +++ b/cmd/helm/app/lint_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/list.go b/cmd/helm/app/list.go similarity index 99% rename from cmd/helm/list.go rename to cmd/helm/app/list.go index 5ca3de18e..71ef3ab3b 100644 --- a/cmd/helm/list.go +++ b/cmd/helm/app/list.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/list_test.go b/cmd/helm/app/list_test.go similarity index 99% rename from cmd/helm/list_test.go rename to cmd/helm/app/list_test.go index 97a1e284f..e390764d0 100644 --- a/cmd/helm/list_test.go +++ b/cmd/helm/app/list_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "testing" diff --git a/cmd/helm/load_plugins.go b/cmd/helm/app/load_plugins.go similarity index 99% rename from cmd/helm/load_plugins.go rename to cmd/helm/app/load_plugins.go index 001a084ed..4e54dcfcd 100644 --- a/cmd/helm/load_plugins.go +++ b/cmd/helm/app/load_plugins.go @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "bytes" diff --git a/cmd/helm/package.go b/cmd/helm/app/package.go similarity index 99% rename from cmd/helm/package.go rename to cmd/helm/app/package.go index 822d3d56a..85b8bbe05 100644 --- a/cmd/helm/package.go +++ b/cmd/helm/app/package.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/package_test.go b/cmd/helm/app/package_test.go similarity index 99% rename from cmd/helm/package_test.go rename to cmd/helm/app/package_test.go index 9093b510c..d1a9b11b0 100644 --- a/cmd/helm/package_test.go +++ b/cmd/helm/app/package_test.go @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/plugin.go b/cmd/helm/app/plugin.go similarity index 99% rename from cmd/helm/plugin.go rename to cmd/helm/app/plugin.go index 8e1044f54..61cd1133c 100644 --- a/cmd/helm/plugin.go +++ b/cmd/helm/app/plugin.go @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "io" diff --git a/cmd/helm/plugin_install.go b/cmd/helm/app/plugin_install.go similarity index 99% rename from cmd/helm/plugin_install.go rename to cmd/helm/app/plugin_install.go index 4e8ee327b..1b015084b 100644 --- a/cmd/helm/plugin_install.go +++ b/cmd/helm/app/plugin_install.go @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/plugin_list.go b/cmd/helm/app/plugin_list.go similarity index 99% rename from cmd/helm/plugin_list.go rename to cmd/helm/app/plugin_list.go index fcd415191..bef115994 100644 --- a/cmd/helm/plugin_list.go +++ b/cmd/helm/app/plugin_list.go @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/plugin_test.go b/cmd/helm/app/plugin_test.go similarity index 99% rename from cmd/helm/plugin_test.go rename to cmd/helm/app/plugin_test.go index e13ad26fb..4a9f5c7ca 100644 --- a/cmd/helm/plugin_test.go +++ b/cmd/helm/app/plugin_test.go @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "bytes" diff --git a/cmd/helm/plugin_uninstall.go b/cmd/helm/app/plugin_uninstall.go similarity index 99% rename from cmd/helm/plugin_uninstall.go rename to cmd/helm/app/plugin_uninstall.go index ee4a47beb..2b8a9d314 100644 --- a/cmd/helm/plugin_uninstall.go +++ b/cmd/helm/app/plugin_uninstall.go @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/plugin_update.go b/cmd/helm/app/plugin_update.go similarity index 99% rename from cmd/helm/plugin_update.go rename to cmd/helm/app/plugin_update.go index 4515acdbb..2823fd5bc 100644 --- a/cmd/helm/plugin_update.go +++ b/cmd/helm/app/plugin_update.go @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/printer.go b/cmd/helm/app/printer.go similarity index 98% rename from cmd/helm/printer.go rename to cmd/helm/app/printer.go index 7cf7bf994..cc7032ca3 100644 --- a/cmd/helm/printer.go +++ b/cmd/helm/app/printer.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "io" diff --git a/cmd/helm/pull.go b/cmd/helm/app/pull.go similarity index 99% rename from cmd/helm/pull.go rename to cmd/helm/app/pull.go index af3092aff..8826abc72 100644 --- a/cmd/helm/pull.go +++ b/cmd/helm/app/pull.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/pull_test.go b/cmd/helm/app/pull_test.go similarity index 99% rename from cmd/helm/pull_test.go rename to cmd/helm/app/pull_test.go index 41ac237f4..0d77e8601 100644 --- a/cmd/helm/pull_test.go +++ b/cmd/helm/app/pull_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/push.go b/cmd/helm/app/push.go similarity index 99% rename from cmd/helm/push.go rename to cmd/helm/app/push.go index 3375155ed..c52d6ec56 100644 --- a/cmd/helm/push.go +++ b/cmd/helm/app/push.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/push_test.go b/cmd/helm/app/push_test.go similarity index 98% rename from cmd/helm/push_test.go rename to cmd/helm/app/push_test.go index 8e56d99dc..4795a003f 100644 --- a/cmd/helm/push_test.go +++ b/cmd/helm/app/push_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "testing" diff --git a/cmd/helm/registry.go b/cmd/helm/app/registry.go similarity index 98% rename from cmd/helm/registry.go rename to cmd/helm/app/registry.go index b2b24cd14..0678cac4b 100644 --- a/cmd/helm/registry.go +++ b/cmd/helm/app/registry.go @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "io" diff --git a/cmd/helm/registry_login.go b/cmd/helm/app/registry_login.go similarity index 99% rename from cmd/helm/registry_login.go rename to cmd/helm/app/registry_login.go index 112e06a95..a9f15698a 100644 --- a/cmd/helm/registry_login.go +++ b/cmd/helm/app/registry_login.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "bufio" diff --git a/cmd/helm/registry_login_test.go b/cmd/helm/app/registry_login_test.go similarity index 98% rename from cmd/helm/registry_login_test.go rename to cmd/helm/app/registry_login_test.go index 517fe08e1..4a242f0ab 100644 --- a/cmd/helm/registry_login_test.go +++ b/cmd/helm/app/registry_login_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "testing" diff --git a/cmd/helm/registry_logout.go b/cmd/helm/app/registry_logout.go similarity index 98% rename from cmd/helm/registry_logout.go rename to cmd/helm/app/registry_logout.go index 0084f8c09..380bc7b80 100644 --- a/cmd/helm/registry_logout.go +++ b/cmd/helm/app/registry_logout.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "io" diff --git a/cmd/helm/registry_logout_test.go b/cmd/helm/app/registry_logout_test.go similarity index 98% rename from cmd/helm/registry_logout_test.go rename to cmd/helm/app/registry_logout_test.go index 31f716725..55d4ff67f 100644 --- a/cmd/helm/registry_logout_test.go +++ b/cmd/helm/app/registry_logout_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "testing" diff --git a/cmd/helm/release_testing.go b/cmd/helm/app/release_testing.go similarity index 99% rename from cmd/helm/release_testing.go rename to cmd/helm/app/release_testing.go index 548ae2b8a..781eecbc7 100644 --- a/cmd/helm/release_testing.go +++ b/cmd/helm/app/release_testing.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/release_testing_test.go b/cmd/helm/app/release_testing_test.go similarity index 98% rename from cmd/helm/release_testing_test.go rename to cmd/helm/app/release_testing_test.go index 680a9bd3e..785614786 100644 --- a/cmd/helm/release_testing_test.go +++ b/cmd/helm/app/release_testing_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "testing" diff --git a/cmd/helm/repo.go b/cmd/helm/app/repo.go similarity index 99% rename from cmd/helm/repo.go rename to cmd/helm/app/repo.go index ad6ceaa8f..3da6b8b0e 100644 --- a/cmd/helm/repo.go +++ b/cmd/helm/app/repo.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "io" diff --git a/cmd/helm/repo_add.go b/cmd/helm/app/repo_add.go similarity index 99% rename from cmd/helm/repo_add.go rename to cmd/helm/app/repo_add.go index 2deda3f4f..6400574f5 100644 --- a/cmd/helm/repo_add.go +++ b/cmd/helm/app/repo_add.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "context" diff --git a/cmd/helm/repo_add_test.go b/cmd/helm/app/repo_add_test.go similarity index 99% rename from cmd/helm/repo_add_test.go rename to cmd/helm/app/repo_add_test.go index 2386bb01f..e1fafc390 100644 --- a/cmd/helm/repo_add_test.go +++ b/cmd/helm/app/repo_add_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/repo_index.go b/cmd/helm/app/repo_index.go similarity index 99% rename from cmd/helm/repo_index.go rename to cmd/helm/app/repo_index.go index d947aca60..c469b1046 100644 --- a/cmd/helm/repo_index.go +++ b/cmd/helm/app/repo_index.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "io" diff --git a/cmd/helm/repo_index_test.go b/cmd/helm/app/repo_index_test.go similarity index 99% rename from cmd/helm/repo_index_test.go rename to cmd/helm/app/repo_index_test.go index 554a3dadf..5146e2cc8 100644 --- a/cmd/helm/repo_index_test.go +++ b/cmd/helm/app/repo_index_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "bytes" diff --git a/cmd/helm/repo_list.go b/cmd/helm/app/repo_list.go similarity index 99% rename from cmd/helm/repo_list.go rename to cmd/helm/app/repo_list.go index 334f859a1..9e902e39f 100644 --- a/cmd/helm/repo_list.go +++ b/cmd/helm/app/repo_list.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/repo_list_test.go b/cmd/helm/app/repo_list_test.go similarity index 98% rename from cmd/helm/repo_list_test.go rename to cmd/helm/app/repo_list_test.go index 90149ebda..bbeb9c77a 100644 --- a/cmd/helm/repo_list_test.go +++ b/cmd/helm/app/repo_list_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "testing" diff --git a/cmd/helm/repo_remove.go b/cmd/helm/app/repo_remove.go similarity index 99% rename from cmd/helm/repo_remove.go rename to cmd/helm/app/repo_remove.go index 0c1ad2cd5..c371862a0 100644 --- a/cmd/helm/repo_remove.go +++ b/cmd/helm/app/repo_remove.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/repo_remove_test.go b/cmd/helm/app/repo_remove_test.go similarity index 99% rename from cmd/helm/repo_remove_test.go rename to cmd/helm/app/repo_remove_test.go index e2795e738..1de9c8cba 100644 --- a/cmd/helm/repo_remove_test.go +++ b/cmd/helm/app/repo_remove_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "bytes" diff --git a/cmd/helm/repo_test.go b/cmd/helm/app/repo_test.go similarity index 98% rename from cmd/helm/repo_test.go rename to cmd/helm/app/repo_test.go index 2b0df7c4c..e60a4067d 100644 --- a/cmd/helm/repo_test.go +++ b/cmd/helm/app/repo_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "testing" diff --git a/cmd/helm/repo_update.go b/cmd/helm/app/repo_update.go similarity index 99% rename from cmd/helm/repo_update.go rename to cmd/helm/app/repo_update.go index 27661674c..39bbcf273 100644 --- a/cmd/helm/repo_update.go +++ b/cmd/helm/app/repo_update.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/repo_update_test.go b/cmd/helm/app/repo_update_test.go similarity index 99% rename from cmd/helm/repo_update_test.go rename to cmd/helm/app/repo_update_test.go index 645c68cfe..d2064a39e 100644 --- a/cmd/helm/repo_update_test.go +++ b/cmd/helm/app/repo_update_test.go @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "bytes" diff --git a/cmd/helm/rollback.go b/cmd/helm/app/rollback.go similarity index 99% rename from cmd/helm/rollback.go rename to cmd/helm/app/rollback.go index 7de98e404..721d1f229 100644 --- a/cmd/helm/rollback.go +++ b/cmd/helm/app/rollback.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/rollback_test.go b/cmd/helm/app/rollback_test.go similarity index 99% rename from cmd/helm/rollback_test.go rename to cmd/helm/app/rollback_test.go index b58e4c162..585c66f26 100644 --- a/cmd/helm/rollback_test.go +++ b/cmd/helm/app/rollback_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/root.go b/cmd/helm/app/root.go similarity index 99% rename from cmd/helm/root.go rename to cmd/helm/app/root.go index 55b7e8892..253b92cba 100644 --- a/cmd/helm/root.go +++ b/cmd/helm/app/root.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main // import "helm.sh/helm/v3/cmd/helm" +package app import ( "context" diff --git a/cmd/helm/root_test.go b/cmd/helm/app/root_test.go similarity index 99% rename from cmd/helm/root_test.go rename to cmd/helm/app/root_test.go index 65e6d66c7..16b580f06 100644 --- a/cmd/helm/root_test.go +++ b/cmd/helm/app/root_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "os" diff --git a/cmd/helm/root_unix.go b/cmd/helm/app/root_unix.go similarity index 99% rename from cmd/helm/root_unix.go rename to cmd/helm/app/root_unix.go index 92fa1b59d..bc60bf286 100644 --- a/cmd/helm/root_unix.go +++ b/cmd/helm/app/root_unix.go @@ -16,7 +16,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "os" diff --git a/cmd/helm/root_unix_test.go b/cmd/helm/app/root_unix_test.go similarity index 99% rename from cmd/helm/root_unix_test.go rename to cmd/helm/app/root_unix_test.go index f7466a93d..56ebf9795 100644 --- a/cmd/helm/root_unix_test.go +++ b/cmd/helm/app/root_unix_test.go @@ -16,7 +16,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "bytes" diff --git a/cmd/helm/root_windows.go b/cmd/helm/app/root_windows.go similarity index 98% rename from cmd/helm/root_windows.go rename to cmd/helm/app/root_windows.go index 7b5000f4f..2a439b190 100644 --- a/cmd/helm/root_windows.go +++ b/cmd/helm/app/root_windows.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app func checkPerms() { // Not yet implemented on Windows. If you know how to do a comprehensive perms diff --git a/cmd/helm/search.go b/cmd/helm/app/search.go similarity index 98% rename from cmd/helm/search.go rename to cmd/helm/app/search.go index 6c62d5d2e..2ad8dc108 100644 --- a/cmd/helm/search.go +++ b/cmd/helm/app/search.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "io" diff --git a/cmd/helm/search_hub.go b/cmd/helm/app/search_hub.go similarity index 99% rename from cmd/helm/search_hub.go rename to cmd/helm/app/search_hub.go index 1618a4c9f..04fce6eab 100644 --- a/cmd/helm/search_hub.go +++ b/cmd/helm/app/search_hub.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/search_hub_test.go b/cmd/helm/app/search_hub_test.go similarity index 99% rename from cmd/helm/search_hub_test.go rename to cmd/helm/app/search_hub_test.go index 89ce2b3e5..a394281ae 100644 --- a/cmd/helm/search_hub_test.go +++ b/cmd/helm/app/search_hub_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/search_repo.go b/cmd/helm/app/search_repo.go similarity index 99% rename from cmd/helm/search_repo.go rename to cmd/helm/app/search_repo.go index 2c6f17094..581b3debf 100644 --- a/cmd/helm/search_repo.go +++ b/cmd/helm/app/search_repo.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "bufio" diff --git a/cmd/helm/search_repo_test.go b/cmd/helm/app/search_repo_test.go similarity index 99% rename from cmd/helm/search_repo_test.go rename to cmd/helm/app/search_repo_test.go index 9039842f0..8ffc02f10 100644 --- a/cmd/helm/search_repo_test.go +++ b/cmd/helm/app/search_repo_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "testing" diff --git a/cmd/helm/search_test.go b/cmd/helm/app/search_test.go similarity index 98% rename from cmd/helm/search_test.go rename to cmd/helm/app/search_test.go index 6cf845b06..7f74d9814 100644 --- a/cmd/helm/search_test.go +++ b/cmd/helm/app/search_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import "testing" diff --git a/cmd/helm/show.go b/cmd/helm/app/show.go similarity index 99% rename from cmd/helm/show.go rename to cmd/helm/app/show.go index 28eb9756d..67cbdc86d 100644 --- a/cmd/helm/show.go +++ b/cmd/helm/app/show.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/show_test.go b/cmd/helm/app/show_test.go similarity index 99% rename from cmd/helm/show_test.go rename to cmd/helm/app/show_test.go index 93ec08d0f..0e125e693 100644 --- a/cmd/helm/show_test.go +++ b/cmd/helm/app/show_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/status.go b/cmd/helm/app/status.go similarity index 99% rename from cmd/helm/status.go rename to cmd/helm/app/status.go index 850862cd5..296190d02 100644 --- a/cmd/helm/status.go +++ b/cmd/helm/app/status.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "bytes" diff --git a/cmd/helm/status_test.go b/cmd/helm/app/status_test.go similarity index 99% rename from cmd/helm/status_test.go rename to cmd/helm/app/status_test.go index 6722bf949..a2e812fa7 100644 --- a/cmd/helm/status_test.go +++ b/cmd/helm/app/status_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "testing" diff --git a/cmd/helm/template.go b/cmd/helm/app/template.go similarity index 99% rename from cmd/helm/template.go rename to cmd/helm/app/template.go index a16cbc76e..49360e06c 100644 --- a/cmd/helm/template.go +++ b/cmd/helm/app/template.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "bytes" diff --git a/cmd/helm/template_test.go b/cmd/helm/app/template_test.go similarity index 99% rename from cmd/helm/template_test.go rename to cmd/helm/app/template_test.go index e5b939879..a7d605970 100644 --- a/cmd/helm/template_test.go +++ b/cmd/helm/app/template_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/uninstall.go b/cmd/helm/app/uninstall.go similarity index 99% rename from cmd/helm/uninstall.go rename to cmd/helm/app/uninstall.go index 9ced8fef0..f66dedfea 100644 --- a/cmd/helm/uninstall.go +++ b/cmd/helm/app/uninstall.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/uninstall_test.go b/cmd/helm/app/uninstall_test.go similarity index 99% rename from cmd/helm/uninstall_test.go rename to cmd/helm/app/uninstall_test.go index 23b61058e..521e06d32 100644 --- a/cmd/helm/uninstall_test.go +++ b/cmd/helm/app/uninstall_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "testing" diff --git a/cmd/helm/upgrade.go b/cmd/helm/app/upgrade.go similarity index 99% rename from cmd/helm/upgrade.go rename to cmd/helm/app/upgrade.go index e7c6dd166..5f7ed6712 100644 --- a/cmd/helm/upgrade.go +++ b/cmd/helm/app/upgrade.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "context" diff --git a/cmd/helm/upgrade_test.go b/cmd/helm/app/upgrade_test.go similarity index 99% rename from cmd/helm/upgrade_test.go rename to cmd/helm/app/upgrade_test.go index 485267d1d..837247e0b 100644 --- a/cmd/helm/upgrade_test.go +++ b/cmd/helm/app/upgrade_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/verify.go b/cmd/helm/app/verify.go similarity index 99% rename from cmd/helm/verify.go rename to cmd/helm/app/verify.go index d126c9ef3..4543efda9 100644 --- a/cmd/helm/verify.go +++ b/cmd/helm/app/verify.go @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/verify_test.go b/cmd/helm/app/verify_test.go similarity index 99% rename from cmd/helm/verify_test.go rename to cmd/helm/app/verify_test.go index 23b793557..a9f64eada 100644 --- a/cmd/helm/verify_test.go +++ b/cmd/helm/app/verify_test.go @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/version.go b/cmd/helm/app/version.go similarity index 99% rename from cmd/helm/version.go rename to cmd/helm/app/version.go index d62778f7b..0c10a655c 100644 --- a/cmd/helm/version.go +++ b/cmd/helm/app/version.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "fmt" diff --git a/cmd/helm/version_test.go b/cmd/helm/app/version_test.go similarity index 98% rename from cmd/helm/version_test.go rename to cmd/helm/app/version_test.go index aa3cbfb7d..52e14a0c5 100644 --- a/cmd/helm/version_test.go +++ b/cmd/helm/app/version_test.go @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package main +package app import ( "testing" diff --git a/cmd/helm/main.go b/cmd/helm/main.go new file mode 100644 index 000000000..38bb57480 --- /dev/null +++ b/cmd/helm/main.go @@ -0,0 +1,24 @@ +/* +Copyright The Helm Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package main + +import ( + "helm.sh/helm/v3/cmd/helm/app" +) + +func main() { + app.Main() +}