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:
Patrik Oldsberg
2026-03-13 07:54:28 +01:00
parent 1929a95b97
commit 18012b5802
33 changed files with 77 additions and 77 deletions
@@ -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'],
});
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
export { OpaqueCliPlugin } from './InternalCliPlugin';
export { OpaqueCliModule } from './InternalCliModule';
export type {
CommandNode,
CommandTreeNode,