Rename CliPlugin to CliModule and cli-plugin role to cli-module
Rename createCliPlugin to createCliModule, CliPlugin to CliModule, and the cli-plugin package role to cli-module to better distinguish CLI modules from other plugin types. Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com> Made-with: Cursor
This commit is contained in:
+4
-4
@@ -14,17 +14,17 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { CliCommand, CliPlugin } from '@backstage/cli-node';
|
||||
import { CliCommand, CliModule } from '@backstage/cli-node';
|
||||
import { OpaqueType } from '@internal/opaque';
|
||||
|
||||
export const OpaqueCliPlugin = OpaqueType.create<{
|
||||
public: CliPlugin;
|
||||
export const OpaqueCliModule = OpaqueType.create<{
|
||||
public: CliModule;
|
||||
versions: {
|
||||
readonly version: 'v1';
|
||||
readonly packageName: string;
|
||||
readonly commands: Promise<ReadonlyArray<CliCommand>>;
|
||||
};
|
||||
}>({
|
||||
type: '@backstage/CliPlugin',
|
||||
type: '@backstage/CliModule',
|
||||
versions: ['v1'],
|
||||
});
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export { OpaqueCliPlugin } from './InternalCliPlugin';
|
||||
export { OpaqueCliModule } from './InternalCliModule';
|
||||
export type {
|
||||
CommandNode,
|
||||
CommandTreeNode,
|
||||
|
||||
Reference in New Issue
Block a user