Remove the deprecated API use of tanzu-plugin-runtime in the CLI codebase
Describe the feature request
-
Remove the deprecated API use of tanzu-plugin-runtime in the Tanzu CLI codebase
-
As part of https://github.com/vmware-tanzu/tanzu-plugin-runtime/pull/34, APIs were marked as deprecated.
-
https://github.com/vmware-tanzu/tanzu-cli/pull/127 update the go mod dependency to consume the tanzu-plugin-runtime code with the APIs deprecated.
-
Because of lack of time, https://github.com/vmware-tanzu/tanzu-cli/pull/127 ignores the deprecation warning messages in the test file as well as the actual codebase by adding the
// nolint:staticcheck // Deprecatedcomment. -
As part of this issue, we should stop using the deprecated APIs and update the codebase to use alternate API.
Describe alternative(s) you've considered None
Additional context