zowe / zowe-cli-secrets-for-kubernetes

Eclipse Public License 2.0
0 stars 0 forks source link

Export credential manager API from CLI plugin #8

Closed t1m0thyj closed 1 year ago

t1m0thyj commented 1 year ago

Currently the top-level package does not export any classes for extenders to use. To import the credential manager class, I have to do the following:

const K8sCredentialManager = require("@zowe/secrets-for-kubernetes-for-zowe-cli/lib/credentials/K8sCredentialManager");

Ideally the credential manager could be imported like this:

import { K8sCredentialManager } from "@zowe/secrets-for-kubernetes-for-zowe-cli";

We should enhance the K8s plugin for Zowe CLI to export APIs like the sample plugin: https://github.com/zowe/zowe-cli-sample-plugin/blob/master/src/index.ts